Skip to content

Extension of My-Project that displays the appropriate message if the graph is planar or not

Notifications You must be signed in to change notification settings

dalampira/Planar-Graph-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planar Graph Project

This is an extension of My-Project that displays the appropriate message depending on whether the graph is planar or not.

In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cross each other. Such a drawing is called a plane graph or planar embedding of the graph. A plane graph can be defined as a planar graph with a mapping from every node to a point on a plane, and from every edge to a plane curve on that plane, such that the extreme points of each curve are the points mapped from its end nodes, and all curves are disjoint except on their extreme points.

To do so, this project implements a heuristic method called circle-chord method.

It consists of a step-by-step method of drawing the graph, edge-by-edge without crossing any edges.

Step One: Find a circuit that contains all the vertices of the graph. (Recall: a circuit is a path that ends where it starts)

Step Two: Draw this circuit as a large circle.

Step Three: Choose one chord, and decide to draw it either inside or outside the circle. If chosen correctly, it will force certain other chords to be drawn opposite to the circle. (Inside if the first chord was drawn outside, and vice versa.)

About

Extension of My-Project that displays the appropriate message if the graph is planar or not

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages