GithubHelp home page GithubHelp logo

venvis / assignment-graph-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maastrichtlawtech/assignment-graph-ui

0.0 0.0 0.0 233 KB

A very basic cytoscape based graph ready to be used to experiment.

TypeScript 67.85% HTML 15.78% CSS 16.37%

assignment-graph-ui's Introduction

To run the script , clone the forked repo and navigate to the following directory :

git clone [email protected]:venvis/assignment-graph-ui.git
npm install 
cd assignment-graph-ui
cd src
npm start

Once started , it will automatically open localhost:3000 and this should be how index.tsx looks like. In case any error occurs due to headless reading on the page , refreshing the page will make it go away and the code will work fine



Click on any node to see it's information : Name , Id , Indegree , Outdegree on the right hand side for Requirement 1

While clicking on the nodes , every other node it is connected to and the neighbouring lines and arrows are also highlighted : Requirement 2



To change the name , into another , I have set the content of the h3 to be editable , so it can directly be changed . Requirement 3 . It is Case friendly and must be written in all CAPS like all nodes . For example:

Change name by removing the "Enter name to be changed" and edit into name accordingly and click on the change button.


For Requirement 4 , start searching by typing directly in the search field and automatically all nodes not related and their edges start disappearing , showing only related nodes from the search bar.Not CASE friendly. For Example :

In this example , RFC5 is filtered out and all other nodes and their edges/lines disappear

To run all requirements including 1,2,3 and 4 , it's necessary to click on a node first to initiate step 1 for all other steps to work since all the necessary code is under the cy.on('tap') method 

assignment-graph-ui's People

Contributors

venvis avatar carloseam94 avatar shashankmc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.