Go to the documentation of this file.
45#define LEVEL_LIST_GROW_CHUNK 50
47SloanLevelStructure :: ~SloanLevelStructure()
53SloanLevelStructure :: destroyLevels()
59SloanLevelStructure :: formYourself(
int limitWidth)
65 int nnodes =
Graph->getNumberOfNodes();
70 nodalStatuses.
at(
Root) = 1;
77 int CurrLevelWidth = 0;
79 for (
int n:
Graph->giveNode( inode ).giveNeighborList() ) {
80 if ( nodalStatuses.
at(n) == 0 ) {
82 nodalStatuses.
at(n) = 1;
83 if ( ( limitWidth > 0 ) && ( ++CurrLevelWidth > limitWidth ) ) {
96SloanLevelStructure :: computeDepth()
103SloanLevelStructure :: computeWidth()
106 for (
int i = 1; i <=
giveDepth(); i++ ) {
107 int LevelWidth =
giveLevel(i).giveSize();
108 if (
Width < LevelWidth ) {
115SloanLevelStructure :: giveLevel(
int num)
void followedBy(const IntArray &b, int allocChunk=0)
int Root
Root node of level structure.
int Width
Width of structure defined as max number of nodes in all levels.
std::vector< IntArray > Structure
Data representation of structure: List of arrays, one array for each level.
SloanGraph * Graph
Reference to corresponding graph.
int formYourself(int limitWidth=-1)
int Depth
Depth of structure defined as number of levels.
void destroyLevels()
Destroys all levels.
int giveDepth()
Returns the depth of receiver.
IntArray & giveLevel(int num)
Returns the i-th level of receiver.
#define LEVEL_LIST_GROW_CHUNK
This page is part of the
OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak
Bořek Patzák
Project e-mail:
oofem@fsv.cvut.cz
Generated at for OOFEM by
doxygen
1.15.0 written by Dimitri van Heesch,
© 1997-2011