dyng
DynamicGraphLayout
Public Member Functions | List of all members
dyng::basic_edge< ConnectedNode > Class Template Reference

#include <edge.h>

Public Member Functions

 basic_edge (edge_id id, node_id one, node_id two)
 Sets the id of the edge and ids of two connected nodes.
 
node_id one_id () const
 Returns the id of one connected node.
 
node_id two_id () const
 Returns the id of the other connected node.
 
edge_id id () const
 
bool is_new () const
 Returns if the edge is new in its current state.
 
void is_new (bool value)
 Sets if the node is new in its current state.
 
bool is_old () const
 Returns if the edge is going to be deleted in the next state.
 
void is_old (bool value)
 Sets if the node is going to be deleted in the next state.
 
float alpha () const
 Returns current alpha value. More...
 
void alpha (float value)
 Sets the current alpha value.
 
ConnectedNode & node_one ()
 Returns a reference to one connected node.
 
const ConnectedNode & node_one () const
 Returns a const reference to one connected node.
 
ConnectedNode & node_two ()
 Returns a reference to the other connected node.
 
const ConnectedNode & node_two () const
 Returns a const reference to the other connected node.
 
void set_ptr (detail::container< ConnectedNode, node_id > *cont)
 Sets the pointer to the object detail::container. More...
 

Detailed Description

template<typename ConnectedNode>
class dyng::basic_edge< ConnectedNode >

A base class that edge and edge_partition are derived from.

Template Parameters
ConnectedNodeType of node this edge connects to.

Member Function Documentation

◆ alpha()

template<typename ConnectedNode >
float dyng::basic_edge< ConnectedNode >::alpha ( ) const
inline

Returns current alpha value.

This is used to create an animation of the edge appearing of disappearing. Automatically set by interpolator.

See also
dyng::interpolator

◆ set_ptr()

template<typename ConnectedNode >
void dyng::basic_edge< ConnectedNode >::set_ptr ( detail::container< ConnectedNode, node_id > *  cont)
inline

Sets the pointer to the object detail::container.

The internal pointer to the container allows the methods one and two to exist.

Set internally by graph.

See also
graph graph_state

The documentation for this class was generated from the following file: