linchemin.rem.route_descriptors.RouteDescriptor

class linchemin.rem.route_descriptors.RouteDescriptor[source]

Abstract class for DescriptorCalculator.

Attributes:

info: A string describing the descriptor

title: A string that can be used as title of a column of a dataframe containing the descriptor

type: A string indicating the type of the descriptor (e.g., “number” for single values, “ratio” for fractions)

fields: A list of string indicating the names of elements contributing to the descriptor (name of the

descriptor for single values, names of the elements for fractions)

order: An integer used to order the columns of the descriptors’ dataframe

__init__()

Methods

__init__()

compute_descriptor(graph)

To calculate the descriptor for the given graph.

get_configuration()

Attributes

info

title

type

fields

order