MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / clear

Method clear

include/core/graph.h:76–84  ·  view source on GitHub ↗

Clear the graph and free CPU memory */

Source from the content-addressed store, hash-verified

74
75 /** Clear the graph and free CPU memory */
76 virtual void clear() {
77 num_vertex = 0;
78 num_edge = 0;
79 decltype(vertex_edges)().swap(vertex_edges);
80 decltype(edges)().swap(edges);
81 decltype(vertex_weights)().swap(vertex_weights);
82 decltype(edge_weights)().swap(edge_weights);
83 decltype(flat_offsets)().swap(flat_offsets);
84 }
85
86 /** Flatten the adjacency list to an edge list */
87 virtual void flatten() {

Callers 7

node_classificationMethod · 0.45
link_predictionMethod · 0.45
entity_predictionMethod · 0.45
link_predictionMethod · 0.45
visualizationMethod · 0.45
hierarchyMethod · 0.45
animationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected