21 #ifndef _TLPGRAPHMEASEURE_H 22 #define _TLPGRAPHMEASEURE_H 26 #include <tulip/Node.h> 27 #include <tulip/MutableContainer.h> 28 #include <tulip/StaticProperty.h> 29 #include <tulip/GraphTools.h> 42 TLP_SCOPE
double averagePathLength(
const Graph *g);
49 TLP_SCOPE
double averageClusteringCoefficient(
const Graph *);
58 TLP_SCOPE _DEPRECATED
void clusteringCoefficient(
const Graph *g, MutableContainer<double> &result,
59 unsigned int maxDepth = 1);
67 TLP_SCOPE
void clusteringCoefficient(
const Graph *g, tlp::NodeStaticProperty<double> &result,
68 unsigned int maxDepth = 1);
75 TLP_SCOPE _DEPRECATED
void dagLevel(
const Graph *graph, MutableContainer<unsigned int> &level);
86 TLP_SCOPE
void degree(
const Graph *graph, tlp::NodeStaticProperty<double> °,
87 EDGE_TYPE direction = UNDIRECTED, NumericProperty *weights =
nullptr,
96 TLP_SCOPE
void dagLevel(
const Graph *graph, tlp::NodeStaticProperty<unsigned int> &level);
98 TLP_SCOPE
unsigned int maxDegree(
const Graph *);
100 TLP_SCOPE
unsigned int minDegree(
const Graph *);
108 TLP_SCOPE _DEPRECATED
unsigned int maxDistance(
const Graph *graph,
const node n,
109 MutableContainer<unsigned int> &distance,
110 EDGE_TYPE direction = UNDIRECTED);
118 TLP_SCOPE
unsigned int maxDistance(
const Graph *graph,
const unsigned int nPos,
119 tlp::NodeStaticProperty<unsigned int> &distance,
120 EDGE_TYPE direction = UNDIRECTED);
131 TLP_SCOPE
double maxDistance(
const Graph *graph,
const unsigned int nPos,
132 tlp::NodeStaticProperty<double> &distance,
133 const NumericProperty *
const weights,
134 EDGE_TYPE direction = UNDIRECTED);