ug4
|
#include <new_graph.h>
Public Types | |
typedef const size_t * | const_row_iterator |
typedef stdvector< size_t >::const_iterator | const_row_iterator |
typedef size_t * | row_iterator |
typedef stdvector< size_t >::iterator | row_iterator |
Public Member Functions | |
row_iterator | begin_row (size_t row) |
row_iterator | begin_row (size_t row) |
const_row_iterator | begin_row (size_t row) const |
const_row_iterator | begin_row (size_t row) const |
cgraph () | |
cgraph () | |
cgraph (size_t n) | |
cgraph (size_t n) | |
void | create_as_symmetricized (const cgraph &other) |
row_iterator | end_row (size_t row) |
row_iterator | end_row (size_t row) |
const_row_iterator | end_row (size_t row) const |
const_row_iterator | end_row (size_t row) const |
bool | has_connection (size_t from, size_t to) const |
returns true if graph has connection from "from" to "to", otherwise false More... | |
void | init (size_t i) |
returns true if graph has connection from "from" to "to", otherwise false More... | |
bool | is_isolated (size_t i) const |
bool | is_isolated (size_t i) const |
size_t | num_connections (size_t node) const |
returns nr of nodes the node "node" is connected to. More... | |
size_t | num_connections (size_t node) const |
returns nr of nodes the node "node" is connected to. More... | |
void | pr (size_t i) const |
print row i More... | |
void | print () const |
void | print () const |
print whole graph to cout More... | |
void | resize (size_t n) |
void | resize (size_t n) |
void | set_as_transpose_of (const cgraph &other) |
creates this graph as the transpose of other More... | |
void | set_as_transpose_of (const cgraph &other) |
creates this graph as the transpose of other More... | |
void | set_connection (size_t from, size_t to) |
set a connection from "from" to "to" if not already there More... | |
void | set_connection (size_t from, size_t to) |
set a connection from "from" to "to" if not already there More... | |
size_t | size () const |
size_t | size () const |
void | size_check (size_t a, size_t b) const |
void | size_check (size_t i) const |
void | symmetricize () |
void | transpose () |
tranpose this graph (by using create_as_tranpose of) More... | |
void | transpose () |
tranpose this graph (by using create_as_tranpose of) More... | |
~cgraph () | |
~cgraph () | |
Protected Attributes | |
stdvector< size_t * > | cons |
stdvector< size_t > | consmem |
size_t | iMaxTotalNrOfConnections |
size_t | iTotalNrOfConnections |
stdvector< stdvector< size_t > > | m_data |
Private Member Functions | |
void | increase_maxtotalnrofconnections () |
void | size_check (size_t i) const |
void | size_check (size_t i, size_t j) const |
Friends | |
std::ostream & | operator<< (std::ostream &out, const cgraph &g) |
cgraph graph class
typedef const size_t* ug::cgraph::const_row_iterator |
typedef stdvector<size_t>::const_iterator ug::cgraph::const_row_iterator |
typedef size_t* ug::cgraph::row_iterator |
typedef stdvector<size_t>::iterator ug::cgraph::row_iterator |
|
inline |
constructor
References FORCE_CREATION, and print().
|
inline |
References resize().
|
inline |
destructor
|
inline |
constructor
|
inline |
References FORCE_CREATION, m_data, pr(), print(), and resize().
|
inline |
destructor
|
inline |
References cons, and size_check().
Referenced by ug::SparseBlockGaussSeidel2< TAlgebra, backward, forward >::block_preprocess(), create_as_symmetricized(), has_connection(), pr(), print(), set_as_transpose_of(), and set_connection().
|
inline |
References m_data, and size_check().
|
inline |
References cons, and size_check().
|
inline |
References m_data, and size_check().
|
inline |
References begin_row(), cons, consmem, end_row(), iMaxTotalNrOfConnections, iTotalNrOfConnections, num_connections(), p, size(), and UG_ASSERT.
Referenced by symmetricize().
|
inline |
References cons, and size_check().
Referenced by ug::SparseBlockGaussSeidel2< TAlgebra, backward, forward >::block_preprocess(), create_as_symmetricized(), has_connection(), pr(), print(), set_as_transpose_of(), and set_connection().
|
inline |
References m_data, and size_check().
|
inline |
References cons, and size_check().
|
inline |
References m_data, and size_check().
|
inline |
returns true if graph has connection from "from" to "to", otherwise false
References begin_row(), end_row(), and size_check().
|
inlineprivate |
Referenced by set_connection().
|
inline |
returns true if graph has connection from "from" to "to", otherwise false
Referenced by set_connection().
|
inline |
References cons, num_connections(), and size_check().
|
inline |
References m_data, num_connections(), and size_check().
|
inline |
returns nr of nodes the node "node" is connected to.
References cons, and size_check().
Referenced by create_as_symmetricized(), is_isolated(), pr(), and set_as_transpose_of().
|
inline |
returns nr of nodes the node "node" is connected to.
References m_data, and size_check().
|
inline |
|
inline |
References begin_row(), end_row(), and size().
Referenced by cgraph().
|
inline |
print whole graph to cout
|
inline |
|
inline |
creates this graph as the transpose of other
References begin_row(), cons, consmem, end_row(), iMaxTotalNrOfConnections, iTotalNrOfConnections, num_connections(), p, size(), and UG_ASSERT.
Referenced by transpose().
|
inline |
creates this graph as the transpose of other
References m_data.
|
inline |
set a connection from "from" to "to" if not already there
References cons, iMaxTotalNrOfConnections, increase_maxtotalnrofconnections(), init(), iTotalNrOfConnections, size(), size_check(), and UG_ASSERT.
Referenced by ug::SparseBlockGaussSeidel2< TAlgebra, backward, forward >::block_preprocess(), and ug::StrongNegativeConnectionsByBlockNorm::find().
|
inline |
set a connection from "from" to "to" if not already there
References begin_row(), end_row(), m_data, and size_check().
|
inline |
References cons.
Referenced by ug::SparseBlockGaussSeidel2< TAlgebra, backward, forward >::block_preprocess(), create_as_symmetricized(), print(), set_as_transpose_of(), set_connection(), and size_check().
|
inline |
References m_data.
|
inlineprivate |
References size(), and UG_ASSERT.
Referenced by begin_row(), end_row(), has_connection(), is_isolated(), num_connections(), and set_connection().
|
inlineprivate |
|
inline |
References cons, consmem, create_as_symmetricized(), iMaxTotalNrOfConnections, and iTotalNrOfConnections.
|
inline |
tranpose this graph (by using create_as_tranpose of)
References cons, consmem, iMaxTotalNrOfConnections, iTotalNrOfConnections, and set_as_transpose_of().
|
inline |
tranpose this graph (by using create_as_tranpose of)
References m_data.
|
friend |
|
protected |
|
protected |
Referenced by create_as_symmetricized(), increase_maxtotalnrofconnections(), init(), resize(), set_as_transpose_of(), symmetricize(), and transpose().
|
protected |
Referenced by create_as_symmetricized(), resize(), set_as_transpose_of(), set_connection(), symmetricize(), and transpose().
|
protected |
Referenced by create_as_symmetricized(), resize(), set_as_transpose_of(), set_connection(), symmetricize(), and transpose().
Referenced by begin_row(), cgraph(), end_row(), is_isolated(), num_connections(), resize(), set_as_transpose_of(), set_connection(), size(), size_check(), and transpose().