Graph Matrices and Applications: Unit - Iv
Graph Matrices and Applications: Unit - Iv
ECE
Industry
Software Testing Methodologics Interaction
CSE
UNIT - IV Higher Education
equivalent to path tracing. These methods are more methodical and mechanical and
Soft Skills
don’t depend on your ability to see a path they are more reliable.
* Whenever a graph is used as a model, sooner or later we trace paths through it- to
Mock Test
find a set of covering paths, a set of values that will sensitize paths, the logic
function that controls the flow, the processing time of the routine, the equations
E-learning
that define the domain, or whether a state is reachable or not.
* Path is not easy, and it’s subject to error. You can miss a link here and there or
cover some links twice.
Tool Building:
* If you build test tools or want to know how they work, sooner or later you will be
* Matrix multiplication, which is used to get the path expression from every node to
* A partitioning algorithm for converting graphs with loops into loop free graphs or
equivalence classes.
A collapsing process which gets the path expression from any node to any other
node.
* A graph matrix is a square array with one row and one column for every node in the
graph.
* The relation for example, could be as simple as the link name, if there is a link
* There is a place to put every possible direct connection or link between any and
* The entry at a row and column intersection is the link weight of the link that
* A connection from node i to j does not imply a connection from node j to node i.
* If there are several links between two nodes, then the entry is a sum; the “+” sign
mean that there is a connection and “0” mean that there isn’t.
* The arithmetic rules are:
* 1+1=1 1*1=1
* 1+0=1 1*0=0
* 0+0=0 0*0=0
* Each row of a matrix denotes the outlinks of the node corresponding to that row.
* Each column denotes the inlinks correspoding to that node.
* A branch is a node with more than one nonzero entry in its row.
* A junction is node with more than one nonzero entry in its column.
Relations:
* “Node a is connected to node b” or aRb where “R” means “is connected to”.
* “a>=b” or aRb where “R” means greater than or equal”.
* A graph consists of set of abstract objects called nodes and a relation R between
the nodes.
* If aRb, which is to say that a has the relation R to b, it is denoted by a link from a
to b.
* For some relations we can associate properties called as link weights.
Transitive Relations:
* A relation is transitive if aRb and bRc implies aRc.
to, is less than or equal to, is a relative of, is faster than, is slower than, takes more
time than, is a subset of, includes, shadows, is the boss of.
Reflexive Relations:
* A relation R is reflexive if, for every a, aRa.
* Examples of irreflexive relations include: not equals, is a friend of, is on top of, is
under.
* A relation R is reflexive if, for every a, aRa.
* Examples of irreflexive relations include: not equals, is a friend of, is on top of, is
under.
under.
* A relation R is reflexive if, for every a, aRa.
* A reflexive relation is equivalent to a self loop at every node.
under.
Symmetric Relations:
from b to a.
* A graph whose relations are not symmetric are called directed graph.
* A relation R is antisymmetric if for every a and b, if aRb and bRa, then a=b, or they
time.
symmetric properties.
* The importance of equivalence classes and relations is that any member of the
equivalence class is, with respect to the relation, equivalent to any other member of
that class.
* The idea behind partition testing strategies such as domain testing and path
testing, is that we can partition the input space into equivalence classes.
* Testing any member of the equivalence class is as effective as testing them all.
Partial Ordering Relations:
properties.
Partial ordered graphs have several important properties: they are loop free, there
* Each entry in the graph’s matrix expresses a relation between the pair of nodes
that corresponds to that entry.
* Squaring the matrix yields a new matrix that expresses the relation between each
pair of nodes via one intermediate node under the assumption that the relation is
transitive.
* The square of the matrix represents all path segments two links long.
* The third power represents all path segments three links long.
* More generally, given two matrices A and B with entries aik and bkj, respectively,
their product is a new matrix C, whose entries are cij, where:
Partitioning Algorithm
* Consider any graph over a transitive relation. The graph may have loops.
* We would like to partition the graph by grouping nodes in such a way that every
* Many graphs with loops are easy to analyze if you know where to break the loops.
* While you and I can recognize loops, it’s much harder to program a tool to do it
* The matrix powers usually tell us more than we want to know about most graphs.
* In the context of testing, we usually interested in establishing a relation between
The advantage of matrix reduction method is that it is more methodical than the
1. Select a node for removal; replace the node by equivalent links that bypass that
node and add those links to the links they parallel.
3. Observe loop terms and adjust the outlinks of every node that had a self loop to
::Back::
1 Comment Sort by Newest
Add a comment...
Deepali Singhal
huhuhuhuhu
Like · Reply · 1 · 1y