public class EdgeParser extends DOTBaseListener
BaseListener for the second iteration of parsing DOT files. Using the node and subgraph information from the first iteration, all edge statements are inspected and for each edge statement, the corresponding edge / edges (in case of subgraphs) are created.
| Modifier and Type | Class and Description |
|---|---|
class |
EdgeParser.WeightedDotEdge
A weighted edge contains two nodes and the edge weight.
|
| Constructor and Description |
|---|
EdgeParser(NodeAndSubgraphParser nasListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
enterEdge_stmt(DOTParser.Edge_stmtContext ctx)
Enter a parse tree produced by
DOTParser.edge_stmt(). |
java.util.Set<EdgeParser.WeightedDotEdge> |
getWeightedDotEdges() |
enterA_list, enterAttr_list, enterAttr_stmt, enterEdgeop, enterEdgeRHS, enterEveryRule, enterGraph, enterId, enterNode_id, enterNode_stmt, enterPort, enterStmt_list, enterStmt, enterSubgraph, exitA_list, exitAttr_list, exitAttr_stmt, exitEdge_stmt, exitEdgeop, exitEdgeRHS, exitEveryRule, exitGraph, exitId, exitNode_id, exitNode_stmt, exitPort, exitStmt_list, exitStmt, exitSubgraph, visitErrorNode, visitTerminalpublic EdgeParser(NodeAndSubgraphParser nasListener)
public java.util.Set<EdgeParser.WeightedDotEdge> getWeightedDotEdges()
public void enterEdge_stmt(DOTParser.Edge_stmtContext ctx)
DOTBaseListenerenterEdge_stmt in interface DOTListenerenterEdge_stmt in class DOTBaseListenerctx - the parse tree