Graphs
The in-degree of a vertex
Theorem: If
Proof: An edge
Theorem: If
Proof: In a directed graph an edge
Theorem: Let
Proof:
- If
is undirected then maximum degree of a vertex is . Since we're dealing with a simple graph and not a complete graph, the number of edges but be less than the maximum number of edges . Thus . - In case of a directed graph, the maximum number of edges are
since every edge is counted once.
-
If
and are directed graphs, we say that is a sub-(directed) graph pf if and -
If
and are directed graphs, we say that is an induced sub-(directed) graph pf if and -
A spanning subgraph of
is a subgraph of that contains all vertices of the graph .
- A path in a directed graph
is a sequence of distinct vertices such that for all is an edge. - If
is a directed graph, and we say that is reachable from if there exists a path from to . - A graph is connected if for any two vertices there is a path between them.
- A directed graph is strongly connected is every vertex is reachable from every other.
- A forest is a graph without cycles.
- A tree is a connected graph without cycles , i.e. a connected forest.
- A spanning tree of a graph is a spanning subgraph that is a tree.
Theorem: Let
Proof: If
Theorem: Let
Proof: A tree is a connected graph without cycles. This will the simplest case wherein the
Theorem: Let
Proof: A forest is a graph without cycles. Since there is no restriction on the graph to be connected (but it can be). The number of edges