Graph class

Constructors

Graph()
Graph.fromNodes(List<GraphNode> nodesInitial, {Map<String, List<String>> connections})

Properties

allEdges List<GraphEdge>
read / write
edges Map<String, List<GraphEdge>>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
nodes List<GraphNode>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addNode(GraphNode n) → void
checkConnection(String idA, String idB) bool
connectNodes(String idA, String idB) bool
copy() Graph
disconnectNodes(String from, String to) → void
getEdges(String id) List<GraphEdge>
getNode(String id) GraphNode
nodeExists(String id) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeNode(GraphNode n) → void
removeNodeByID(String id) → void
showConnections() Map<String, List<String>>
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited