Notes:
jsnetworkx uses d3.v3
Need django package (For Mac - pip install django)
To run, go to PBRWebApp directory, type "python manage.py runserver"
Test changes in rangographs.js and graph.html by visiting localhost:8000/polls/1/graphs
For easier debugging, use developer tools in Google Chrome to read console
Current Functionality:
-
Mouseover module to highlight itself and its connected modules
-
Click module to fix highlight of single module
-
Double click background to add module
-
Click two non-connected nodes to create connection
-
Right-click to delete a node and its connected edges
-
Added input validation
Bugs:
-
Click events only work after second click
-
Dragging a node activates click events
-
Run button leads to 404 error
Plans:
-
Sidebar or dropdown of modules that can be dragged onto the body of the graph
-
Delete edges by clicking two connected nodes
Extras:
- Different shapes for different types of modules