lab_graphs
Gangnam-Style Graphs
demo.cpp File Reference

This file shows how the Graph class can be used. More...

#include <iostream>
#include <string>
#include "graph.h"
#include "premade_graphs.cpp"
+ Include dependency graph for demo.cpp:

Functions

void createPremadeGraphs ()
 Draws the three example graphs with weights. More...
 
void createUnweightedUS ()
 Create the US map without weights. More...
 
void createRandomGraph ()
 Create and print a random weighted graph with 9 vertices and random seed 777. More...
 
void buildGraph ()
 Build a graph by manually inserting vertices. More...
 
int main ()
 Run all the different examples. More...
 

Detailed Description

This file shows how the Graph class can be used.

Feel free to play around in this area!

Author
Sean Massung
Date
Spring 2011

Updated by Sean Massung for Spring 2012

Function Documentation

void createPremadeGraphs ( )

Draws the three example graphs with weights.

All graphs saved as PNGs are in lab12/images/.

void createUnweightedUS ( )

Create the US map without weights.

void createRandomGraph ( )

Create and print a random weighted graph with 9 vertices and random seed 777.

void buildGraph ( )

Build a graph by manually inserting vertices.

int main ( )

Run all the different examples.