Skip to content

Commit

Permalink
added dataset.json.example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifera committed Jul 20, 2021
1 parent bf24bdb commit 158f785
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions PathMapper/PathMapper.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
<FileType>Document</FileType>
</CopyFileToFolders>
<None Include="..\README.md" />
<None Include="dataset.json.example" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
3 changes: 3 additions & 0 deletions PathMapper/PathMapper.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<ItemGroup>
<None Include="packages.config" />
<None Include="..\README.md" />
<None Include="dataset.json.example">
<Filter>Resource Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<CopyFileToFolders Include="dataset.json">
Expand Down
38 changes: 38 additions & 0 deletions PathMapper/dataset.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ // NOTE: Please do remove the comments before running.
"cities": [
"CITY A", // list of all the cities to include in dataset (vertex)
"CITY B",
"CITY C"
],
"links": [
{
"city_1": "CITY A", // a link between two cities (edge)
"city_2": "CITY B",
"time": 38, // time in minutes
"distance": 18
},
{
"city_1": "CITY B",
"city_2": "CITY C",
"time": 60,
"distance": 42
}
],
"towns": [
{
"city": "CITY B",
"towns": [
"TOWN 1", // list of all towns for a particular city (vertex)
"TOWN 2"
],
"links": [
{
"town_1": "TOWN 1", // a link between two towns of a city (edge)
"town_2": "TOWN 2",
"time": 14, // time in minutes
"distance": 3.5
}
]
}
]
}

0 comments on commit 158f785

Please sign in to comment.