Python implementation of GraSS: Graph Structure Summarization graph summarization algorithm introduced by Kristen LeFevre and Evimaria Terzi.
Given an input graph
Given an input graph
Given an input graph
-
paper: this folder contain the scientific publication written by Kristen LeFevre and Evimaria Terzi which describes GraSS graph summarization algorithm -
graph_data_structure: containes the basic graph data structure implementation. We rely on the Python implelemtation proposed in this website. The code in the folder reads a graph from file (input.txt) and prints it on the output stream and in a file named output.txt.- input.txt file structure: the first line contains two integers N and M which are the number of nodes and the number of edges respectively. The M following lines are populated by couples of integers u v which represent an edge from node u to node v
-
grass: implementation of all the algorithms proposed by LeFevre and Terzi to solve the graph summarization problem-
k-Gs greedy: baseline Greedy algorithm -
k-Gs SamplePairs: SamplePairs algorithm-
kgs_sample_pairs_constant(graph, summary, k, num_pair): in this implementation of the SamplePairs algorithm, we pick a constant number of pairs in every round$K$ . The number of pairs which are picked at every step is set by parameter num_pair -
kgs_sample_pairs_proportional(graph, summary, k, c_const): in this implementation of the SamplePairs algorithm, at every iteration$t$ we may sample pairs$P(t)$ with cardinality proportional to the number of supernodes$n(t)$ in the graph summary at iteration$t$ :$|P(t)| = \mathit{c_const}*(n(t))$
-
-
k-Gs LinearCheck: LinearCheck algorithm k-CGsGs
-