Visit: http://blog.thehardways.me
hsiaosiyuan0.github.io's Introduction
hsiaosiyuan0.github.io's People
hsiaosiyuan0.github.io's Issues
Graph theory
Definition - Graph theory is the study of mathematical objects known as graphs, which consist of vertices (or nodes) connected by edges.
Common usage - Any scenario in which one wishes to examine the structure of a network of connected objects is potentially a problem for graph theory.
Below sentence seems wrong:
A non-trivial graph consists of one or more vertices (or nodes) connected by edges.
because the trivial graph is the graph on one vertex. This graph meets the definition of conneced vacuously (since an edage requires two vertices). A non-trivial connected graph is any connected graph that isn't this graph.
In mathematics, the adjective trivial is frequently used for objects (for example, groups or topological spaces) that have a very simple structure.
The degree of a vertex is the number of edges connected to that vertex.
In the graph below, vertex A is degress 3, while vertices B and C are degree 2, vertex D is degree 1, and vertex E is of degree 0.
A graph is said to be complete if there exists an edge connecting every two pairs of vertices:
The number of edges in a complete graph with
Given a graph
An adjacency matrix is a square matrix (same number of rows and columns), used to represent a finite graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.