Scilab function

graph_sum - sum of two graphs

Calling Sequence

g2 = graph_sum(g,g1)

Parameters

Description

graph_sum creates a graph g2 with an adjacency matrix equal to the sum of the adjacency matrices of the two graphs g and g1. g and g1 are supposed to be simple graphs (use graph_simp before calling graph_complement if necessary) and to have the same number of nodes.

Examples

See Also