Scilab function

split_edge - splits an edge by inserting a node

Calling Sequence

g1 = split_edge(i,j,g,name)



split_edge returns the graph g1, the edge from node number i to node number j being splitted: a new node is created and located at the middle point between the 2 previous nodes. This new node is linked with the 2 nodes i and j. 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.


See Also