Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph transformation - vertices into edges and edges into vertices

is there any algorithm or is there any name for a transformation of a graph where one can transform edges into vertices and vertices into edges? Just so we could get a new graph out of it or anything similiar to this problem? I'm not sure if it actually makes sense but I'd be glad if you could give me just any hint about a problem like this.

like image 319
krajol Avatar asked Dec 04 '12 10:12

krajol


People also ask

How do you find the vertices and edges of a graph?

A vertex a represents an endpoint of an edge. An edge joins two vertices a, b and is represented by set of vertices it connects. Here V is verteces and a, b, c, d are various vertex of the graph. Here E represents edges and {a, b}, {a, c}, {b, c}, {c, d} are various edge of the graph.

What is a digraph in graph theory?

A directed graph, also called a digraph, is a graph in which the edges have a direction. This is usually indicated with an arrow on the edge; more formally, if v and w are vertices, an edge is an unordered pair {v,w}, while a directed edge, called an arc, is an ordered pair (v,w) or (w,v).

What is graph edges and vertices?

A vertex (or node) of a graph is one of the objects that are connected together. The connections between the vertices are called edges or links. A graph with 10 vertices (or nodes) and 11 edges (links). For more information about graph vertices, see the network introduction.

What is graph transformation system?

In computer science, graph transformation, or graph rewriting, concerns the technique of creating a new graph out of an original graph algorithmically. It has numerous applications, ranging from software engineering (software construction and also software verification) to layout algorithms and picture generation.


1 Answers

LineGraph is a built-in function in Wolfram Language:

http://reference.wolfram.com/language/ref/LineGraph.html

This is what it does:

  • Each vertex in LineGraph[g] corresponds to an edge in g.
  • For an undirected graph g, two vertices in LineGraph[g] are adjacent if their corresponding edges share a common vertex.
  • For a directed graph g, two vertices in LineGraph[g] are adjacent if their corresponding edges are connected, i.e. the target of one edge is the source of the other edge.
  • LineGraph works with undirected graphs, directed graphs, and multigraphs.
like image 164
Vitaliy Kaurov Avatar answered Oct 21 '22 12:10

Vitaliy Kaurov