-
Notifications
You must be signed in to change notification settings - Fork 1
/
statistics.R
44 lines (43 loc) · 3.06 KB
/
statistics.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
statistics <- c(
"Number of Edges" = "Number of Edges\tecount(igraph)",
"Number of Nodes" = "Number of Nodes\tround(vcount(igraph))",
"Diameter" = "Diameter\tdiameter(igraph)",
"Radius" = "Radius\tradius(igraph)",
"Density" = "Density\tgraph.density(igraph)",
"Average path length" = "Average path length\taverage.path.length(igraph)",
"Clustering Coefficient" = "Clustering Coefficient\ttransitivity(igraph)",
"Modularity" = "Modularity\tmodularity(igraph,membership(walktrap.community(igraph)))",
"Number of self loops" = "Number of self loops\tsum(is.loop(igraph))",
"Average Eccentricity" = "Average Eccentricity\tmean(eccentricity(igraph))",
"Average Eigenvector Centrality" = "Average Eigenvector Centrality\tmean(evcent(igraph)$vector)",
"Assortativity degree" = "Assortativity degree\tassortativity.degree(igraph)",
"Is directed acyclic graph?" = "Is directed acyclic graph?\tas.logical(is.dag(igraph))",
# "Is Directed?" = "Is Directed?\tas.logical(is.directed(igraph))",
# "Is chordal? " = "Is chordal?\tas.logical(is.chordal(igraph)$chordal)",
"Average number of Neighbors" = "Average number of Neighbors\t(centr_eigen(igraph)$centralization)",
"Centralization betweenness" = "Centralization.betweenness\tcentralization.betweenness(igraph)$centralization",
"Centralization degree" = "Centralization.degree\tcentralization.degree(igraph)$centralization",
"Graph mincut" = "Graph.mincut\tgraph.mincut(igraph)",
"Motifs-3" = "Motifs-3\tcount_motifs(igraph,3)",
"Motifs-4" = "Motifs-4\tcount_motifs(igraph,4)"
# "Average Alpha Centrality"="Average Alpha Centrality\tmean(alpha.centrality(igraph))",
# "Average Kleinberg’s centrality"="Average Kleinberg’s centrality\tmean(authority.score(igraph)$vector)",
# "Clique number"="Clique number\tclique.number(igraph)",
# "Number of clusters"="No clusters\tno.clusters(igraph)",
# "Average nearest neighbor degree"="Average nearest neighbor degree\tgraph.knn(igraph)",
# "Count adjacenct triangles"="Count adjacenct triangles\tadjacent.triangles(igraph)",
# "Find Bonacich alpha centrality scores (slow)"="Find Bonacich alpha centrality\tbonpow(igraph)",
# "Assortativity coefficient"="Assortativity coefficient\tassortativity.degree(igraph)",
# "Centralization evcent"="Centralization.evcent\tcentralization.evcent(igraph)$centralization",
# "Cliques"="Cliques\tlength(cliques(igraph))",
# "Closeness"="Closeness\tcloseness(igraph)",
# "Cluster distribution"="Cluster.distribution\tcluster.distribution(igraph)",
# "Clusters"="Clusters\tclusters(igraph)$no",
# "Graph knn"="Graph.knn\tgraph.knn(igraph)",
# "Graph maxflow (source vertex)"="Graph.maxflow\tgraph.maxflow(igraph)",
# "Graph strength"="Graph.strength\tgraph.strength(igraph)",
# "Neighborhood size (integer order)"="Neighborhood.size\tneighborhood.size(igraph)",
# "Subgraph centrality"="Subgraph.centrality\tsubgraph.centrality(igraph)",
# "Maximum cardinality search"="Maximum.cardinality.search\tmaximum.cardinality.search(igraph)"
)
selected_statistics <- c("Number of Edges" = "Number of Edges\tecount(igraph)")