HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Pigeonhole, Recursion and Graph Theory
  2. /Mathematics
  3. /Graph Theory
Chapter 30 · Part 3 of 3Pigeonhole, Recursion and Graph Theory
← Previous part: Recurrences and Counting by Recursion
High School (11–12)Pigeonhole Principle, Recursion and Graph TheoryFree course

Graph Theory

Can you walk through a town and cross each of its bridges exactly once?

  • Euler answered that question by drawing dots and lines.
  • The picture is a graph.
  • You learn degrees and the handshake lemma, paths, cycles and connectivity, then trees, bipartite graphs and Euler trails.
  • The course ends with planar graphs and Euler's formula, colouring, and the Ramsey number R(3, 3) = 6.
  • It covers the graph theory unit of the Indian olympiad syllabus and the same topic of the international olympiads.
  • IB Applications and Interpretation HL meets part of it too.

3 lessons, about 1 h 20 min3 simulations10 problems3 practice questionsPython in every lesson

StemPy LabCreated by StemPy Lab

Free

Every lesson is open to read. Enroll to keep your place in the course. No payment needed.

This course includes

  • 3 lessons, about 1 h 20 min
  • 3 simulations with sliders
  • 3 practice questions with new numbers each time
  • 3 Python programs to run
  • 10 problems with worked solutions
  • 2 Python labs
1 question set
  • 1 revision note
  • 1 test
  • Log in to save

    Course outline (3 lessons)

    1. 1
      Lesson 1about 25 min

      Graphs, degrees and the handshake lemma

      A graph is a set of vertices with some pairs joined by edges. The degree of a vertex is the number of edges at it. Every edge has two ends, so the degrees add up to twice the number of edges: the handshake lemma. So the number of odd vertices is always even. Paths, cycles and connected components describe how a graph hangs together.

      1 simulation1 practice question1 Python program3 problems1 Python lab
      Read the lesson
    2. 2
      Lesson 2about 25 min

      Trees, bipartite graphs and Euler trails

      A tree is a connected graph with no cycle; with nnn vertices it has n−1n - 1n−1 edges and at least two leaves. A graph is bipartite when its vertices split into two parts with every edge going across, which happens exactly when it has no odd cycle. A connected graph has an Euler circuit when every degree is even, and an Euler trail when exactly two degrees are odd.

      1 simulation1 practice question1 Python program4 problems1 Python lab
      Read the lesson
    3. 3
      Lesson 3about 30 min

      Planar graphs, colouring and Ramsey numbers

      A planar graph can be drawn with no edges crossing. For a connected planar drawing, V−E+F=2V - E + F = 2V−E+F=2, and a simple planar graph with at least 333 vertices has E≤3V−6E \le 3V - 6E≤3V−6; so K5K_5K5​ and K3,3K_{3,3}K3,3​ are not planar. A colouring gives joined vertices different colours. Ramsey's theorem says that complete disorder is impossible: any 666 people include 333 mutual friends or 333 mutual strangers, so R(3,3)=6R(3, 3) = 6R(3,3)=6.

      1 simulation1 practice question1 Python program3 problems1 question set1 note
      Read the lesson

    Test Your Learning

    Graph Theory: Timed Test
    Olympiad format15 questions · 45 min
    Not started

    Your teacher

    StemPy LabStemPy Lab

    1 follower

    Loading…

    ← All Courses
    ← Recurrences and Counting by RecursionNext →
    More onPigeonhole Principle, Recursion and Graph Theory

    Discussion (0)

    Log in to join the discussion.

    Loading…