EPANET  3.0
EPANET Development Project
graph.h
Go to the documentation of this file.
1 /* EPANET 3
2  *
3  * Copyright (c) 2016 Open Water Analytics
4  * Licensed under the terms of the MIT License (see the LICENSE file for details).
5  *
6  */
7 
10 
11 #ifndef GRAPH_H_
12 #define GRAPH_H_
13 
20 
21 #include <vector>
22 
23 class Network;
24 
25 class Graph
26 {
27  public:
28 
29  Graph();
30  ~Graph();
31 
32  void createAdjLists(Network* nw);
33 
34  private:
35  std::vector<int> adjLists; // packed nodal adjacency lists
36  std::vector<int> adjListBeg; // starting index of each node's list
37 };
38 
39 #endif // GRAPH_H_
Contains graph theoretic representation of a pipe network.
Definition: graph.h:25
Contains the data elements that describe a pipe network.
Definition: network.h:41