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

Version Path
trackler-2.2.1.180 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.179 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.178 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.177 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.176 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.175 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.174 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.173 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.172 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.171 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.170 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.169 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.167 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.166 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.165 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.164 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.163 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.162 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.161 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.160 tracks/python/exercises/dot-dsl/dot_dsl.py