|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
vertex
.
position
in the sequence
bfsTraversal
is an example (very primitive) of
the possible implementation of a Breadth First Search traversal
of a Graph
bfsTraversal
is an example of the possible
implementation of a Breadth First Search traversal of a
Graph
.
BinaryForest
interface extends the Forest
interface.root
.
bubbleSortArrayLike
is a very simple
Bubble Sort written for the Java Collection Framework.
bubbleSortExamples
is used to run the
two other methods: bubbleSortArrayLike
and
bubbleSortSequence
.
Sequence
.
parent
).
parent
).
constructDirectedGraph
method is used to
initialize a default directed Graph
.
constructDirectedGraph
method is used to
initialize a default directed Graph
.
constructDirectedGraph
method is used to
initialize a default directed Graph
.
constructUndirectedGraph
method is used to
initialize a default undirected Graph
.
constructUndirectedGraph
method is used to
initialize a default undirected Graph
.
Container
is a Collection
of
elements.child
) and its parent.
position
and returns
the corresponding element.
position
.
position
.
edge
edge
from one of its extremities, the vertex vertex
.
dfsTraversal
is an example of the possible
implementation of a Depth First Search traversal of a
Graph
.
dfsTraversal
is an example of the possible
implementation of a Depth First Search traversal of a
Graph
.
dfsTraversal
is an example of the possible
implementation of a Depth First Search traversal of a
Graph
.
displayBinaryForest
method implements a
recursive in-order traversal.
f
This function contains a loop on all the roots of the
forest.
edge
Container
determines if
it contains the position
and -- if it
is found -- the corresponding element is returned.
element()
returns the
element contained in the position.
position
is
contained in this ch.bfh.algo.Container
.
ex1
method executes all tests concerning the Forest
.
ex2
method contains the tests about the BinaryForest
.
first()
returns the
Position
containing the first element of the
sequence.
Forest
interface is used to store any type of
arborescence.Graph
interface has the functionalities of both a
directed and an undirected graph.GraphExample1
contains one very simple
example of the ch.bfh.algo.Graph
interface.GraphExample2
contains an example of the
ch.bfh.algo.Graph
interface, using the Factory Pattern
to have specialized Vertices.GraphExample3
contains an example of the
ch.bfh.algo.Graph
interface, using the Factory Pattern
to have specialized Vertices.GraphExampleNonGenerics
contains an example of use
of graph without any generics.GraphStress
contains Stess Tests for the Graphvertex
.
initBinaryForest
method is used to create a new binary forest.
element
into this
Container
.
element
in the sequence.
element
in the sequence.
element
.
element
.
element
.
last()
returns the
Position
containing the last element of the
sequence.
parent
and
child
.
node
in the list of children of the parent
of sibling
.
node
in the list of children of the parent
of sibling
.
parent
, and another node, the child
The child should not have any parent, i.e.
parent
, and another node, the child
The child should not have any parent, i.e.
locator
method is used to
access the second level place holder (used only for complex data structures) such that ...
mergeSort
implements the merge sort
algorithm using the Sequence
interface.
vertex
on the edge edge
.
edge
Position
interface is used as a placeholder in all the containers (for instance Sequence
, Forest
, or Graph
).position
method returns the
Position
corresponding to a given
rank
.
positionEfficiencyExample
shows the
advantage of the Sequence
compared to standard
structures such as java.util.List
.
Iterator
over all positions is created.
positionListIterator
method creates and return a ListIterator
for the Position
s contained in the sequence.
positionListIterator
method creates and return a ListIterator
for the Position
s contained in the sequence.
rank
method returns the rank of the given
position
, analogous to the method indexOf
in the List
interface.
removeFirstThreeOfL1FromL2
removes the
tree first elements of the sequence1 from the sequence2.
position
with
the specified element
.
edge
by element
.
vertex
by element
.
Sequence
interface is used to store elements in a flat
datastructure.SequencesSortExamples
contains samples of
the use of a Sequence
.vertex
to be the new destination of the edge edge
.
edge
as a directed edge.
vertex
to be the new origin of the edge edge
.
edge
as an undirected edge.
edge0
and edge1
.
vertex0
and vertex1
.
mergeSort()
) works as expected
splitUsingIterator()
) works as expected
p1
to the node p2
.
Forest
and the BinaryForest
interfaces.vertex
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |