Skip to content

Instantly share code, notes, and snippets.

@rocarvaj
Created May 3, 2012 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocarvaj/2587972 to your computer and use it in GitHub Desktop.
Save rocarvaj/2587972 to your computer and use it in GitHub Desktop.
Class in Python
class Arc(object):
""" An arc in the graph """
def __init__(self, origin=None, dest=None, varCost=None, fixCost=None, capac=None):
self.origin = origin
self.dest = dest
self.varCost = varCost
self.fixCost = fixCost
self.capac = capac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment