name: BiGraph <TObject> : private DoubleLinkedList< BiGraphVertex<TObject> >


g++ [flags ...] file ...

#include <BiGraph.h>

BiGraph(const BiGraph<TObject>& copy_graph);
boolean isWeighted() const;
boolean setWeighted(boolean is_weighted = true);
quick start:
// declare the graph object
BiGraph<Char> graph;

// create some data
Char* char_a = new Char('a');
Char* char_b = new Char('b');

// create and add the vertices to the graph
BiGraphVertex<Char>* vertex_a = graph.insertVertex(char_a);
BiGraphVertex<Char>* vertex_b = graph.insertVertex(char_b);

// draw arcs between the vertices
graph.insertArc(graph.getStart(), vertex_a, false, 0.75);
graph.insertArc(vertex_a, vertex_b, false, 0.75);
graph.insertArc(vertex_b, graph.getTerm(), false, 0.75);

// write it in an Sof file
String tmp_filename(L"graph");
Sof tmp_file;, File::WRITE_ONLY, File::TEXT);

graph.write(tmp_file, 1);

BiGraph is a generic directed graph template class. Internally, the BiGraph is stored as a list of BiGraphVertices. Each Vertex holds the information of the connection with other vertices.


public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods: