you wil probably need a graphing database then