Adds cpp demo.

This commit is contained in:
Henning Dieterichs
2020-03-21 16:31:20 +01:00
parent 2e2494d905
commit 546d79ae6d
5 changed files with 70 additions and 0 deletions

14
demos/cpp/main.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
// visualize `myGraphJson`!
string myGraphJson = "{\"kind\":{\"graph\":true},"
"\"nodes\":[{\"id\":\"1\"},{\"id\":\"2\"}],"
"\"edges\":[{\"from\":\"1\",\"to\":\"2\"}]}";
cout << myGraphJson;
}