Classes | Functions

grtest.cpp File Reference

Test driver for directed graph class. More...

#include <iostream>
#include <OpenAnalysis/Utils/DGraph/DGraphStandard.hpp>
Include dependency graph for grtest.cpp:

Go to the source code of this file.

Classes

class  myGraph
class  myGraph::Node
class  myGraph::Edge

Functions

void list_DFS_nodes (myGraph &)
void list_ReversePostDFS_nodes (myGraph &)
void dump_graph (myGraph &)
int main (int argc, char *argv[])

Detailed Description

Test driver for directed graph class.

Authors:
Arun Chauhan (2001 was part of Mint), Michelle Strout
Version:
Id:
grtest.cpp,v 1.4 2004/11/19 19:21:53 mstrout Exp

Copyright (c) 2002-2005, Rice University
Copyright (c) 2004-2005, University of Chicago
Copyright (c) 2006, Contributors
All rights reserved.
See ../../../Copyright.txt for details.

Definition in file grtest.cpp.


Function Documentation

void dump_graph ( myGraph g  ) 

Definition at line 143 of file grtest.cpp.

References OA::n, myGraph::Edge::val, and myGraph::Node::val.

Referenced by main().

void list_DFS_nodes ( myGraph g  ) 

Definition at line 109 of file grtest.cpp.

References OA::n, and myGraph::Node::val.

Referenced by main().

void list_ReversePostDFS_nodes ( myGraph g  ) 

Definition at line 121 of file grtest.cpp.

References OA::DGraph::DEdgeOrg, OA::n, and myGraph::Node::val.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 54 of file grtest.cpp.

References dump_graph(), myGraph::edge_count(), list_DFS_nodes(), list_ReversePostDFS_nodes(), myGraph::node_count(), and OA::Exception::report().

Here is the call graph for this function: