Sha256: 127447f7969caec37c55e8707e52fc1e4f9aa1575cefeec325a444d5f5ebc714
Contents?: true
Size: 606 Bytes
Versions: 110
Compression:
Stored size: 606 Bytes
Contents
NODE, EDGE, ATTR = range(3) class Node(object): def __init__(self, name, attrs={}): self.name = name self.attrs = attrs def __eq__(self, other): return self.name == other.name and self.attrs == other.attrs class Edge(object): def __init__(self, src, dst, attrs={}): self.src = src self.dst = dst self.attrs = attrs def __eq__(self, other): return (self.src == other.src and self.dst == other.dst and self.attrs == other.attrs) class Graph(object): def __init__(self, data=[]): pass
Version data entries
110 entries across 110 versions & 1 rubygems