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.139 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.138 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.137 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.136 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.135 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.134 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.133 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.132 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.131 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.130 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.129 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.128 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.127 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.126 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.125 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.124 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.123 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.122 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.121 tracks/python/exercises/dot-dsl/dot_dsl.py
trackler-2.2.1.120 tracks/python/exercises/dot-dsl/dot_dsl.py