Lattice Interface

class core.graph.interface.latticeconcept.Container[source]

Container Interface (tree, graph or other data structure)

elements()[source]
Return:iter of element id
has_element(eid)[source]

Test if eid exist in self.

Parameters:
  • eid: element identifier
Return:

bool

nb_elements()[source]

Return the number of elements

class core.graph.interface.latticeconcept.MultiscaleContainer[source]

Bases: core.graph.interface.latticeconcept.ScaleLattice, core.graph.interface.latticeconcept.Container

A multiscale container interface. seid= (eid,sid) seid: scale and element identifier

complex(seid, sid)[source]

Return the complex of the component seid at the scale sid

Parameters:
  • seid: the component scale and element identifier
  • sid: the complex scale identifier
Return:

seid

components(seid, sid)[source]

Return the components of the complex seid at the scale sid

Parameters:
  • seid: the complex scale and element identifier
  • sid: the components scale identifier
Return:

iter of seid

container(sid)[source]

Return a ref on the container associated to sid.

Parameters:
  • sid: scale identifier
Return:

container (a reference, not a copy)

element(seid)[source]

Return the element identifier

Return:elemet id
nb_components(seid, sid)[source]

Return the number of components of the complex seid at the scale sid

Parameters:
  • seid: the complex scale and element identifier
  • sid: the components scale identifier
Return:

int

scale(seid)[source]

Return the scale identifier :Return: scale id

class core.graph.interface.latticeconcept.MultiscaleTree[source]

Bases: core.graph.interface.latticeconcept.MultiscaleContainer

A MultiscaleTree interface.

class core.graph.interface.latticeconcept.MutableMultiscaleContainer[source]

Bases: core.graph.interface.latticeconcept.MutableScaleLattice, core.graph.interface.latticeconcept.MultiscaleContainer

Interface of a mutable MultiscaleContainer

class core.graph.interface.latticeconcept.MutableMultiscaleTree[source]

Bases: core.graph.interface.latticeconcept.MutableMultiscaleContainer, core.graph.interface.latticeconcept.MultiscaleTree

A mutable MultiscaleTree

class core.graph.interface.latticeconcept.MutableScaleLattice[source]

Bases: core.graph.interface.latticeconcept.ScaleLattice

A mutable scale lattice. (sic)

add_scale(sid, min_id, max_id)[source]

Add a scale sid between min_id and max_id. If min_id is coarsest(), add sid after coarsest If max_id is finest() then add sid before finest Else add sid between min_id and max_id

Parameters:
  • sid: the scale identifier to add
  • min_id: finer scale identifier
  • max_id: coarser scale identifier
remove_scale(sid)[source]

Remove a scale sid.

Parameters:
  • sid: the scale identifier to add
scale_id()[source]

Return a free scale identifier

Return:a scale identifier
class core.graph.interface.latticeconcept.ScaleLattice[source]

todo

coarser(sid)[source]

Return the coarser scales of sid

Parameters:
  • sid: scale identifier
Return:

iter of scale_id

coarsest()[source]

Return the coarsest scale identifier

finer(sid)[source]

Return the coarser scales of sid

Parameters:
  • sid: scale identifier
Return:

iter of scale_id

finest()[source]

Return the finest scale identifier

max(sid1, sid2)[source]

Return the finer scale of common coarser scales of sid1 and sid2

Parameters:
  • sid1: scale identifier
  • sid2: scale identifier
Return:

a scale identifier

min(sid1, sid2)[source]

Return the coarser scale of common finer scales of sid1 and sid2

Parameters:
  • sid1: scale identifier
  • sid2: scale identifier
Return:

a scale identifier

nb_coarser(sid)[source]

Return the number of coarser scale identifier

nb_finer(sid)[source]

Return the number of finer scale identifier

nb_scales()[source]

Return the number of scales

scales()[source]

Return scale_id iterator

Previous topic

<no title>

Next topic

<no title>

This Page