Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Visualise Potential Connections in a Network using Graphviz
- Invocation: dot -Tsvg -O PC6.gv
- Formula: (n*(n-1))/2 // This is n choose k, where k = 2
- Sample file below is for a network of 6
- Nodes/Edges are generated using the "Generate Potential Connection Edges" Python script (see https://pastebin.com/WF1viLAB)
- */
- graph G {
- //layout = "circo"
- layout = "twopi"
- graph [ bgcolor = "#c7eae5" ]
- node [ shape = "circle" , style = "filled" , fillcolor = "#d3d3d3" ]
- edge [ dir = "both" , arrowsize = "0.4" , arrowhead = "vee" , arrowtail = "vee" ]
- A [ fillcolor = "#d3d3ff" ]
- A -- { B C D E F }
- B -- { C D E F }
- C -- { D E F }
- D -- { E F }
- E -- { F }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement