phasic::Vertex
Represents a vertex (state) in a phase-type graph.
Methods
| Name | Description |
|---|---|
| Vertex | |
| add_edge | |
| add_edge_parameterized | |
| add_aux_vertex | |
| add_aux_vertex_constant | |
| state | |
| edges | |
| parameterized_edges | |
| operator== | |
| operator= | |
| c_vertex | |
| rate | |
| edges_length | |
| is_aux | Check if this vertex is an auxiliary vertex. |
| set_aux | Mark or unmark this vertex as auxiliary. |
| init_factory |
Vertex
phasic::Vertex::Vertex(Graph &graph, struct ptd_vertex *vertex)Vertex
phasic::Vertex::Vertex(const Vertex &o)add_edge
void phasic::Vertex::add_edge(Vertex &to, double weight)add_edge_parameterized
void phasic::Vertex::add_edge_parameterized(Vertex &to, double weight, std::vector< double > edge_state)add_aux_vertex
Vertex phasic::Vertex::add_aux_vertex(double rate)add_aux_vertex
Vertex phasic::Vertex::add_aux_vertex(std::vector< double > rate_coeffs)add_aux_vertex_constant
Vertex phasic::Vertex::add_aux_vertex_constant(double weight)state
std::vector< int > phasic::Vertex::state()edges
std::vector< Edge > phasic::Vertex::edges()parameterized_edges
std::vector< ParameterizedEdge > phasic::Vertex::parameterized_edges()operator==
bool phasic::Vertex::operator==(const Vertex &other) constoperator=
Vertex & phasic::Vertex::operator=(const Vertex &o)c_vertex
struct ptd_vertex * phasic::Vertex::c_vertex()rate
double phasic::Vertex::rate()edges_length
size_t phasic::Vertex::edges_length()is_aux
bool phasic::Vertex::is_aux()Check if this vertex is an auxiliary vertex.
Auxiliary vertices are created by add_aux_vertex() and have special semantics (e.g., their return edge is always constant weight 1.0).
Returns: true if vertex is auxiliary, false otherwise
set_aux
void phasic::Vertex::set_aux(bool value)Mark or unmark this vertex as auxiliary.
Parameters:
value— true to mark as auxiliary, false to unmark
init_factory
static Vertex phasic::Vertex::init_factory(Graph &graph, std::vector< int > state)