
#include <graph.h>
Public Methods | |
| MSLGraph () | |
| virtual | ~MSLGraph () |
| MSLVertex * | AddVertex (const MSLVector &x) |
| MSLEdge * | AddEdge (MSLVertex *v1, MSLVertex *v2) |
| MSLEdge * | AddEdge (MSLVertex *v1, MSLVertex *v2, double time) |
| MSLEdge * | AddEdge (MSLVertex *v1, MSLVertex *v2, const MSLVector &u, double time) |
| bool | IsEdge (MSLVertex *v1, MSLVertex *v2) |
| MSLVertex * | FindVertex (int nid) |
| list< MSLVertex * > | Vertices () const |
| list< MSLEdge * > | Edges () const |
| int | Size () |
| int | NumVertices () const |
| int | NumEdges () const |
| void | Clear () |
Friends | |
| istream & | operator>> (istream &is, MSLGraph &n) |
| ostream & | operator<< (ostream &os, const MSLGraph &n) |
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|