Skip to content

A simple algorithm written in Python to determine if a given degree sequence is graphical.

Notifications You must be signed in to change notification settings

lamdav/isGraphicalScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

isGraphicalScript

Description

A simple algorithm written in Python to determine if a given degree sequence is graphical. This was a fun and easy project to easily and quickly check if a given degree sequence is graphical. This script was used to solve several problems from:
A First Course in Graph Theory by Gary Chartrand and Ping Zhang.

These problems are in the comments of the main function with the number of the book problem listed.

How to Use:

This is a command line script. Simply go where this file is saved and type in
$ isGraphical.py [arguments]
This script takes in space separated arguments.

If you wish to see the degree sequence at each stage of the algorithm, you may use the -v verbose flag.
$ isGraphical.py [arguments] -v
The -v flag can appear interweaved in the arguments if so desired.

About

A simple algorithm written in Python to determine if a given degree sequence is graphical.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages