Skip to content

Coloring nodes in temporal networks #56

@cirillodavide

Description

@cirillodavide

It seems that coloring nodes is allowed only for simple networks but not for temporal networks.

n = pp.Network()
n.add_edge('a', 'b')
n.add_edge('b', 'a')
n.add_edge('a', 'c')
n.add_edge('b', 'c')
n.add_edge('c', 'd')
n.add_edge('d', 'c')

style = {
    'node_color' : {'a': '#000000'}
}

pp.visualisation.plot(n, **style)

Capture1

n = pp.TemporalNetwork()
n.add_edge('a', 'b',1)
n.add_edge('b', 'a',1)
n.add_edge('a', 'c',2)
n.add_edge('b', 'c',2)
n.add_edge('c', 'd',3)
n.add_edge('d', 'c',4)

style = {
    'node_color' : {'a': '#000000'}
}

pp.visualisation.plot(n, **style)

Capture2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions