Skip to content

Latest commit

 

History

History
97 lines (69 loc) · 2.25 KB

generation.rst

File metadata and controls

97 lines (69 loc) · 2.25 KB

Benchmark Generator

A simple demo of usage can be found here.

The library implements several benchmark generators. The aim of those benchmark is to generate both a temporal graph and a reference dynamic community structure.

Currently, two benchmarks are implemented:
  • Benchmark with custom event scenario
  • Benchmark with stable, multiple temporal scale communities

Example of custom scenario

img/scenario.png

Example of stable communities

img/stable_com.png

Benchmark with custom communities

.. currentmodule:: tnetwork

.. autoclass:: ComScenario

.. autosummary::
    :toctree: generated/

        ComScenario.__init__

Function to define events

.. autosummary::
    :toctree: generated/

        ComScenario.INITIALIZE
        ComScenario.BIRTH
        ComScenario.DEATH
        ComScenario.MERGE
        ComScenario.SPLIT
        ComScenario.THESEUS
        ComScenario.RESURGENCE
        ComScenario.GROW_ITERATIVE
        ComScenario.SHRINK_ITERATIVE
        ComScenario.MIGRATE_ITERATIVE
        ComScenario.ASSIGN
        ComScenario.CONTINUE

Run

.. autosummary::
    :toctree: generated/

        ComScenario.run

Toy example

This is the generator of toy examples used in the original paper.

.. autosummary::
    :toctree: generated/

        generate_toy_random_network
        generate_simple_random_graph

Community class

.. currentmodule:: tnetwork.DCD.community

.. autoclass:: Community

.. autosummary::
    :toctree: generated/

        Community.label
        Community.nodes
        Community.nb_intern_edges


Benchmark with stable, multiple temporal scales communities

.. currentmodule:: tnetwork.DCD.multi_temporal_scale

.. autosummary::
    :toctree: generated/

        generate_multi_temporal_scale