Graphs and networks are a fundamental aspect of Civil Engineering Systems.
For example, ...
Motivating Example: Washington DC Metro System
The following figure is a simplified model of the Washington DC Metro System (most of the stations have been omitted):
Figure 1. Simplified view of the Washington DC Metro System
Passengers need to be familiar with the routes, schedule, and cost of using the metro. Typical questions include:
The Smithsonian question is particularly interesting because: (1) it requires that a transportation model be linked to a geographic information systems (GIS) model, and (2) there really isn't a unique answer.
In its most rudimentary form, the Metro System can be modeled as a graph structure. Nodes in the graph correspond to train stations; the edges correspond to the tracks connecting stations. Graph theory is useful because it provides algorithms to answer questions about routes connecting stations A and B.
The adjacent code is a first-cut implementation at modeling this problem domain.
Question
How would you extend the basic node-edge graph structure
to make the model more realistic.
PART 1. SIMPLIFIED GRAPH MODEL OF WASHINGTON DC METRO SYSTEM | |
Program 01. MetroStation Object
Insert code from dc-metrosystem/ ....
|
Code: ... Program output |
Program 02. Simplified Graph Model
Insert code from dc-metrosystem/ ....
|
Code: ... Program output |
Program 03. Metro System Analysis (Graph Assembly and Traversal)
Insert code from dc-metrosystem/ ....
|
Code: ... Program output |
PART 2. WORKING NODE, EDGE AND GRAPH INTERFACES | |
Program 04. ....
....
|
|
PART 3. WORKING WITH JGRAPHT | |
Program 05. Assemble and Traverse a Directed Graph
....
|
Code: ... Program output |
Program 06. Graph of Human Organ Relationships
Get code from Wicked Cool Java ....
|
Code: ... Program output |
Program 07. Demonstrate Topological Sort
....
|
Code: ... Program output |
PART 4. WORKING WITH JGRAPH | |
Program 08. Interfacing JgraphT and JGraph
....
|
Code: ... Program output |
PART 5. WORKING WITH JGRAPHX | |
Program 09. Demonstrate Topological Sort
....
|
Code: ... Program output |
PART 6. MORE APPLICATIONS | |
Program 10. Simplified Implementation for Washington DC Metro System
Here we .....
|
Code: ... Program ... |
Program 11. Network of Executable Blocks
Here we .....
|
Code: ... Program ... |
REFERENCES
Developed in October 2011 by Mark Austin
Department of Civil and Environmental Engineering, University of Maryland