Skip to content

Instantly share code, notes, and snippets.

View FiV0's full-sized avatar
🍌

Finn Völkel FiV0

🍌
View GitHub Profile
@FiV0
FiV0 / bfs.cpp
Created March 25, 2017 21:37
Calculates a bfs-order of a graph
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
/*
* This program reads a simple undireced graph from stdin and preforms
* a BFS on the given graph. The format is as follows:
* n m