Scilab function

add_node - adds a disconnected node to a graph

Calling Sequence

g1 = add_node(g,[xy,name])

Parameters

Description

add_node adds a disconnected node to graph g and returns the new graph g1.

The coordinates of the new node can be given as a row vector of coordinates in xy. If the nodes of graph g have no coordinates (elements node_x and node_y are []), to give xy has no effect. If the nodes of graph g have coordinates and xy is not given, the new node has (0,0) as coordinates.

If name is given, it is the name of the new node, otherwise the number of nodes plus 1 is taken as the name of the new node.

Examples

See Also