Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ChrisPenner/cmpt317

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cmpt317

Using the Map.py graph generator.

First:

sudo pip install networkx matplotlib

then you can import it and use it:

import Map as m
graph = m.makeMap(10, 10, 0.25) # Generate 10 x 10 graph with 0.25 gap frequency

graph.nodes() # Prints out the nodes as (x,y) pairs
graph.neighbours((1, 6)) # Prints out the neighbours of node (1, 6)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages