![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Root interface for graph implementations. More...
Inherited by org.lflang.graph.DirectedGraph< T >.
Public Member Functions | |
| void | addEdge (T to, T from) |
| void | addEdges (T to, List< T > from) |
| void | addNode (T node) |
| Add the given node to the graph. | |
| int | edgeCount () |
| Return the number of directed edges in this graph. | |
| boolean | hasNode (T node) |
| int | nodeCount () |
| Return the number of nodes in this graph. | |
| Set< T > | nodes () |
| Return an unmodifiable set of nodes in this graph. | |
| void | removeEdge (T to, T from) |
| void | removeNode (T node) |
| Remove the given node from the graph. | |
| String | toDOT () |
| Return the DOT (GraphViz) representation of the graph. | |
Root interface for graph implementations.
| <T> | Type of vertices of the graph |
| void org.lflang.graph.Graph< T >.addEdge | ( | T | to, |
| T | from ) |
Implemented in org.lflang.graph.DirectedGraph< T >.
| void org.lflang.graph.Graph< T >.addEdges | ( | T | to, |
| List< T > | from ) |
Implemented in org.lflang.graph.DirectedGraph< T >.
| void org.lflang.graph.Graph< T >.addNode | ( | T | node | ) |
Add the given node to the graph.
Implemented in org.lflang.graph.DirectedGraph< T >.
| int org.lflang.graph.Graph< T >.edgeCount | ( | ) |
Return the number of directed edges in this graph.
Implemented in org.lflang.graph.DirectedGraph< T >.
| boolean org.lflang.graph.Graph< T >.hasNode | ( | T | node | ) |
Implemented in org.lflang.graph.DirectedGraph< T >.
| int org.lflang.graph.Graph< T >.nodeCount | ( | ) |
Return the number of nodes in this graph.
Implemented in org.lflang.graph.DirectedGraph< T >.
| Set< T > org.lflang.graph.Graph< T >.nodes | ( | ) |
Return an unmodifiable set of nodes in this graph.
Implemented in org.lflang.graph.DirectedGraph< T >.
| void org.lflang.graph.Graph< T >.removeEdge | ( | T | to, |
| T | from ) |
Implemented in org.lflang.graph.DirectedGraph< T >.
| void org.lflang.graph.Graph< T >.removeNode | ( | T | node | ) |
Remove the given node from the graph.
This also eliminates any edges from upstream and to downstream neighbors of this node.
| node | The node to remove. |
Implemented in org.lflang.graph.DirectedGraph< T >.
| String org.lflang.graph.Graph< T >.toDOT | ( | ) |
Return the DOT (GraphViz) representation of the graph.
Implemented in org.lflang.generator.ReactionInstanceGraph, and org.lflang.graph.DirectedGraph< T >.