Scilab function

graph_simp - converts a graph to a simple undirected graph

Calling Sequence

g1 = graph_simp(g)

Parameters

Description

graph_simp returns the simple undirected graph g1 corresponding to multigraph g. It deletes loops in g, replaces directed edges with undirected edges and replaces multiple edges with single edges.

Examples