Adds cpp demo.
This commit is contained in:
14
demos/cpp/main.cpp
Normal file
14
demos/cpp/main.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user