Scilab function

add_edge - adds an edge or an arc between two nodes

Calling Sequence

g1 = add_edge(i,j,g)

Parameters

Description

add_edge returns the graph g1 with a new edge from node number i to node number j. If the graph is directed, the edge is an arc. The number of edges plus 1 is taken as the name of the new edge.

Examples

See Also