| igraph Reference Manual |
|---|
int igraph_to_undirected(igraph_t *graph, igraph_to_undirected_t mode);
If the supplied graph is undirected, this function does nothing.
Arguments:
|
The graph object to convert. |
|
Constant, specifies the details of how exactly the
convesion is done. Possible values: |
Returns:
Error code. |
Time complexity: O(|V|+|E|), the number of vertices plus the number of edges.
<< 10.1. igraph_to_directed — Convert an undirected graph to a directed one |
11. Spectral properties >> |