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 =
nullptr) = 0;
57 virtual double getNodeDoubleMax(
const Graph *graph =
nullptr) = 0;
63 virtual double getEdgeDoubleValue(
const edge e)
const = 0;
69 virtual double getEdgeDoubleDefaultValue()
const = 0;
76 virtual double getEdgeDoubleMin(
const Graph *graph =
nullptr) = 0;
83 virtual double getEdgeDoubleMax(
const Graph *graph =
nullptr) = 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 =
nullptr,
bool ascendingOrder =
true);
130 virtual Iterator<edge> *getSortedEdges(
const Graph *sg =
nullptr,
bool ascendingOrder =
true);
141 bool ascendingOrder =
true);
152 bool ascendingOrder =
true);
165 bool ascendingOrder =
true);
169 #endif // NUMERICPROPERTY_H
Interface for Tulip iterators. Allows basic iteration operations only.
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.