Networks, nodes and arcs

<< Click to Display Table of Contents >>

Navigation:  Using SMILE >

Networks, nodes and arcs

The most important class defined by SMILE is DSL_network.

The objects of this class represent directed acyclic graphs (DAGs). They act as containers for nodes and are responsible for node creation and destruction. Nodes and arcs are always created and destroyed by invoking DSL_network’s methods.

Nodes (DAG vertices) are created by the DSL_network::AddNode method and destroyed by DSL_network::DeleteNode.

Arcs (DAG edges) are created by the DSL_network::AddArc method and destroyed by DSL_network::RemoveArc.