Skip to content
Unick Soft edited this page Dec 26, 2020 · 2 revisions

GraphCopyType is used in methods to create copy of graph. There are differents copy types:

  • GCT_COPY - just copy.
  • GTC_MAKE_UNDIRECTED - make all edges undirected.
  • GTC_INVERSE - make copy with reversed edge driection.
  • GTC_REMOVE_SELF_LOOP - make copy without self loops edges. Remove edge from and to same node.
  • GTC_MULTI_TO_COMMON_GRAPH_MINIMAL_EDGES - make copy IMultiGraph and convert it to IGraph. It chooses minimal weight edge if 2 nodes connected by several edges.
  • GTC_MULTI_TO_COMMON_GRAPH_SUM_EDGES - make copy IMultiGraph and convert it to IGraph. It sum weight of all edges of 2 nodes to make IGraph.

Clone this wiki locally