Generate graph in administration

Fix #1