Properties#

class raphtory.Properties#

Bases: object

A view of the properties of an entity

Methods:

as_dict()

Convert properties view to a dict

get(key)

Get property value.

items()

Get a list of key-value pairs

keys()

Get the names for all properties (includes temporal and static properties)

values()

Get the values of the properties

Attributes:

constant

Get a view of the constant properties (meta-data) only.

temporal

Get a view of the temporal properties only.

as_dict()#

Convert properties view to a dict

constant#

Get a view of the constant properties (meta-data) only.

get(key)#

Get property value.

First searches temporal properties and returns latest value if it exists. If not, it falls back to static properties.

items()#

Get a list of key-value pairs

keys()#

Get the names for all properties (includes temporal and static properties)

temporal#

Get a view of the temporal properties only.

values()#

Get the values of the properties

If a property exists as both temporal and static, temporal properties take priority with fallback to the static property if the temporal value does not exist.

class raphtory.ConstProperties#

Bases: object

A view of constant properties of an entity

Methods:

as_dict()

convert the properties view to a python dict

get(key)

items()

lists the property keys together with the corresponding value

keys()

lists the available property keys

values()

lists the property values

as_dict()#

convert the properties view to a python dict

get(key)#
Parameters:

key – the name of the property

get property value by key (returns None if key does not exist)

items()#

lists the property keys together with the corresponding value

keys()#

lists the available property keys

values()#

lists the property values