equal
deleted
inserted
replaced
119 /// |
119 /// |
120 /// The ID of the \ref INVALID edge is -1. |
120 /// The ID of the \ref INVALID edge is -1. |
121 ///\return The ID of the edge \c e. |
121 ///\return The ID of the edge \c e. |
122 static int id(Edge e) { return e.n; } |
122 static int id(Edge e) { return e.n; } |
123 |
123 |
|
124 static Node fromId(int id, Node) { return Node(id);} |
|
125 |
|
126 static Edge fromId(int id, Edge) { return Edge(id);} |
|
127 |
124 Node addNode() { |
128 Node addNode() { |
125 Node n; n.n=nodes.size(); |
129 Node n; n.n=nodes.size(); |
126 nodes.push_back(NodeT()); //FIXME: Hmmm... |
130 nodes.push_back(NodeT()); //FIXME: Hmmm... |
127 return n; |
131 return n; |
128 } |
132 } |