Package | Description |
---|---|
org.mathIT.graphs |
Provides classes representing mathematical graphs and its vertices.
|
Modifier and Type | Method and Description |
---|---|
Actor |
Actor.copy()
Creates and returns a copy of this actor.
|
Modifier and Type | Method and Description |
---|---|
HashSet<Actor> |
SocialNetwork.activate(Actor... actors)
Activates all actives specified by the input actors, i.e.,
marks each of them as active.
|
HashSet<Actor> |
SocialNetwork.activate(Collection<Actor> actors)
Activates all actives specified by the input set of actors, i.e.,
marks each of them as active.
|
HashSet<Actor> |
SocialNetwork.deactivate(Actor... actors)
Deactivates all actors specified by the input actors, i.e.,
marks each of them as inactive.
|
HashSet<Actor> |
SocialNetwork.deactivate(Collection<Actor> actors)
Deactivates all actors specified by the input set of actors, i.e.,
marks each of them as inactive.
|
HashSet<Actor> |
SocialNetwork.nextActivationStep(HashSet<Actor> activeGeneration)
Returns the actors activated by the specified active generation of actors
in this social network, after a single activation step according to the
linear threshold model.
|
HashSet<Actor> |
SocialNetwork.runActivation(HashSet<Actor> initiators)
Returns the actors finally activated by the specified active initiators
in this social network, according to the linear threshold model.
|
Modifier and Type | Method and Description |
---|---|
HashSet<Actor> |
SocialNetwork.activate(Actor... actors)
Activates all actives specified by the input actors, i.e.,
marks each of them as active.
|
HashSet<Actor> |
SocialNetwork.deactivate(Actor... actors)
Deactivates all actors specified by the input actors, i.e.,
marks each of them as inactive.
|
Modifier and Type | Method and Description |
---|---|
HashSet<Actor> |
SocialNetwork.activate(Collection<Actor> actors)
Activates all actives specified by the input set of actors, i.e.,
marks each of them as active.
|
HashSet<Actor> |
SocialNetwork.deactivate(Collection<Actor> actors)
Deactivates all actors specified by the input set of actors, i.e.,
marks each of them as inactive.
|
HashSet<Actor> |
SocialNetwork.nextActivationStep(HashSet<Actor> activeGeneration)
Returns the actors activated by the specified active generation of actors
in this social network, after a single activation step according to the
linear threshold model.
|
HashSet<Actor> |
SocialNetwork.runActivation(HashSet<Actor> initiators)
Returns the actors finally activated by the specified active initiators
in this social network, according to the linear threshold model.
|
Constructor and Description |
---|
Actor(int index,
String name,
Actor[] adjacency)
Creates an actor with the specified name, index, and adjacency list.
|
Actor(int index,
String name,
Actor[] adjacency,
double threshold)
Creates an actor with the specified name, index, adjacency list, and threshold.
|
SocialNetwork(Actor[] actors,
double[][] weights)
Creates a social network of the specified actors and their directed and weighted
relations determined by the specified weight matrix.
|
SocialNetwork(Actor[] actors,
int[][] adjacency)
Creates a social network of the specified actors and their directed
relations determined by the specified adjacency matrix.
|
SocialNetwork(boolean undirected,
Actor[] actors,
double[][] weights)
Creates a social network of the specified actors and their
relations determined by the specified flag whether they are symmetric
and by the specified weight matrix.
|
SocialNetwork(boolean undirected,
Actor[] actors,
int[][] adjacency)
Creates a social network of the specified actors and their
relations determined by the specified flag whether they are symmetric
and by the specified adjacency matrix.
|