20 #ifndef NUMERICPROPERTY_H 21 #define NUMERICPROPERTY_H 23 #include <tulip/PropertyInterface.h> 37 virtual double getNodeDoubleValue(
const node n)
const=0;
43 virtual double getNodeDoubleDefaultValue()
const=0;
50 virtual double getNodeDoubleMin(
const Graph* graph = NULL)=0;
57 virtual double getNodeDoubleMax(
const Graph* graph = NULL)=0;
63 virtual double getEdgeDoubleValue(
const edge e)
const=0;
69 virtual double getEdgeDoubleDefaultValue()
const=0;
76 virtual double getEdgeDoubleMin(
const Graph* graph = NULL)=0;
83 virtual double getEdgeDoubleMax(
const Graph* graph = NULL)=0;
89 virtual void nodesUniformQuantification(
unsigned int)=0;
95 virtual void edgesUniformQuantification(
unsigned int)=0;
102 nodesUniformQuantification(k);
103 edgesUniformQuantification(k);
121 virtual Iterator<node>* getSortedNodes(
const Graph *sg = NULL,
bool ascendingOrder =
true);
130 virtual Iterator<edge>* getSortedEdges(
const Graph *sg = NULL,
bool ascendingOrder =
true);
139 virtual Iterator<edge>* getSortedEdgesBySourceValue(
const Graph *sg = NULL,
bool ascendingOrder =
true);
148 virtual Iterator<edge>* getSortedEdgesByTargetValue(
const Graph *sg = NULL,
bool ascendingOrder =
true);
158 virtual Iterator<edge>* getSortedEdgesByExtremitiesValues(
const Graph *sg = NULL,
bool ascendingOrder =
true);
164 #endif //NUMERICPROPERTY_H
PropertyInterface describes the interface of a graph property.
The edge struct represents an edge in a Graph object.
The node struct represents a node in a Graph object.
void uniformQuantification(unsigned int k)
computes a uniform quantification for the nodes/edges associated values
Interface all numerical properties. Property values are always returned as double.