-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
149 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ Algorithms | |
:caption: Contents: | ||
:glob: | ||
|
||
algorithms/* | ||
sampling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Event Handling | ||
============== | ||
|
||
.. autoclass:: netin.utils.Event | ||
:members: | ||
:undoc-members: | ||
.. autoclass:: netin.utils.HasEvents | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Filters | ||
========== | ||
|
||
.. autoclass:: netin.filters.Filter | ||
:members: | ||
|
||
.. autoclass:: netin.filters.NoDoubleLinks | ||
:members: | ||
|
||
.. autoclass:: netin.filters.NoSelfLinks | ||
:members: | ||
|
||
.. autoclass:: netin.filters.ActiveNodes | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Extending NetIn | ||
=============== | ||
|
||
The package provides multiple interfaces to extend its functionalities. | ||
|
||
Several classes implement the :class:`.HasEvents` interface which can be used to inject your own code at runtime. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
events | ||
|
||
Alternatively, you can extend the existing class structure to facilitate the existing simulation code, changing only specific modeling details. | ||
:class:`.Filter` and :class:`.LinkFormationMechanism` provide abstract classes that describe how target nodes are chosen during simulation. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
filters | ||
mechanisms | ||
|
||
Both custom and existing implementations (e.g., :class:`.Homophily`) can be used in custom models to reuse the existing simulation logic. | ||
In that case, only some of the simulation methods have to be reimplemented. | ||
For this purpose, several abstract base classes define varying levels of modelling abstractions. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Link Formation Mechanisms (LFM) | ||
=============================== | ||
|
||
.. autoclass:: netin.link_formation_mechanisms.LinkFormationMechanism | ||
:members: | ||
|
||
.. autoclass:: netin.link_formation_mechanisms.Uniform | ||
:members: | ||
|
||
.. autoclass:: netin.link_formation_mechanisms.PreferentialAttachment | ||
:members: | ||
|
||
.. autoclass:: netin.link_formation_mechanisms.InDegreePreferentialAttachment | ||
:members: | ||
|
||
.. autoclass:: netin.link_formation_mechanisms.Homophily | ||
:members: | ||
|
||
.. autoclass:: netin.link_formation_mechanisms.TriadicClosure | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Model | ||
===== | ||
|
||
.. autoclass:: netin.models.Model | ||
:members: | ||
:private-members: | ||
|
||
.. autoclass:: netin.models.BinaryClassModel | ||
:members: | ||
:private-members: | ||
|
||
.. autoclass:: netin.models.UndirectedModel | ||
:members: | ||
:private-members: | ||
|
||
.. autoclass:: netin.models.DirectedModel | ||
:members: | ||
:private-members: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Directed Graphs | ||
================= | ||
|
||
.. autoclass:: netin.graphs.DiGraph | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Graphs | ||
======= | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
undirected | ||
directed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Undirected Graphs | ||
================= | ||
|
||
.. autoclass:: netin.graphs.Graph | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Directed Graph Models | ||
===================== | ||
|
||
.. autoclass:: netin.models.DPAModel | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: netin.models.DPAHModel | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Graphs | ||
Models | ||
======= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
:glob: | ||
|
||
generators/* | ||
directed | ||
undirected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Undirected Graph Models | ||
======================= | ||
|
||
.. autoclass:: netin.models.BarabasiAlbertModel | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: netin.models.HomophilyModel | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: netin.models.PAHModel | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: netin.models.PATCHModel | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: netin.models.CompoundLFM | ||
:members: | ||
:inherited-members: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.