HOG2
abstraction
Width.h
Go to the documentation of this file.
1
/*
2
* $Id: width.h
3
* hog2
4
*
5
* Created by Nathan Sturtevant on 09/18/06.
6
* Modified by Nathan Sturtevant on 02/29/20.
7
*
8
* Helper functions for determining edge widths and node widths.
9
*
10
* This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information.
11
*
12
*/
13
14
#ifndef WIDTH_H
15
#define WIDTH_H
16
17
#include "
Graph.h
"
18
19
// THESE MACROS ARE EVIL (side-effects)
20
//#define MIN(A,B) (((A) < (B)) ? (A) : (B))
21
//#define MAX(A,B) (((A) > (B)) ? (A) : (B))
22
23
//node* findNodeAt(int x, int y, Graph* g);
24
//edge* findEdgeBetween(int from, int to, Graph* g);
25
//float findMin(node* n);
26
//float findMax(node* n);
27
//float findMaxAbstracted(node* x, Graph* g);
28
//float findMinAbstractedNode(node* x, Graph* g);
29
//float minSpanningTree(node* n, Graph* g);
30
//bool edgeInVector(edge* e, std::vector<edge*> edges);
31
//void sortEdgeWidths(std::vector<edge*>* edges);
32
//bool hasCycle(edge* e, std::vector<int> nodes);
33
34
#endif
Graph.h
Generated by
1.8.17