21 #ifndef _TLPGRAPHMEASEURE_H
22 #define _TLPGRAPHMEASEURE_H
24 #include <tulip/Node.h>
25 #include <tulip/StaticProperty.h>
26 #include <tulip/GraphTools.h>
39 TLP_SCOPE
double averagePathLength(
const Graph *g);
46 TLP_SCOPE
double averageClusteringCoefficient(
const Graph *);
57 TLP_SCOPE
void clusteringCoefficient(
const Graph *g, tlp::NodeStaticProperty<double> &result,
58 _DEPRECATED
unsigned int maxDepth = 1);
69 TLP_SCOPE
void degree(
const Graph *graph, tlp::NodeStaticProperty<double> °,
70 EDGE_TYPE direction = UNDIRECTED, NumericProperty *weights =
nullptr,
79 TLP_SCOPE
void dagLevel(
const Graph *graph, tlp::NodeStaticProperty<unsigned int> &level);
81 TLP_SCOPE
unsigned int maxDegree(
const Graph *);
83 TLP_SCOPE
unsigned int minDegree(
const Graph *);
91 TLP_SCOPE
unsigned int maxDistance(
const Graph *graph,
const unsigned int nPos,
92 tlp::NodeStaticProperty<unsigned int> &distance,
93 EDGE_TYPE direction = UNDIRECTED);
104 TLP_SCOPE
double maxDistance(
const Graph *graph,
const unsigned int nPos,
105 tlp::NodeStaticProperty<double> &distance,
106 const NumericProperty *
const weights,
107 EDGE_TYPE direction = UNDIRECTED);