arvaithi
BAN USER- 0of 0 votes
AnswersIam trying to send the directed graph in a request payload as
- arvaithi in United States
{
"data":[
{
"source": "A", "target": "B", "distance":6
},
{
"source": "A", "target": "E", "distance":4
},
{
"source": "B", "target": "A", "distance":6
},
{
"source": "B", "target": "C", "distance":2
},
{
"source": "B", "target": "D", "distance":4
},
]
}
How can I save this in database and perform the operations as to get the shortestpath between the points(Iam using java,spring boot )| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersIam passing directed graph as the request payload
- arvaithi in United States
{
"data":[
{
"source": "A", "target": "B", "distance":6
},
{
"source": "A", "target": "E", "distance":4
},
{
"source": "B", "target": "A", "distance":6
},
{
"source": "B", "target": "C", "distance":2
},
{
"source": "B", "target": "D", "distance":4
},
]
}
How can i save the graph in the database using java .Here Iam using spring boot| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersIam passing the graph in the Post request body as
- arvaithi in United States
{
"data":[
{
"source": "A", "target": "B", "distance":6
},
{
"source": "A", "target": "E", "distance":4
},
{
"source": "B", "target": "A", "distance":6
},
{
"source": "B", "target": "C", "distance":2
},
{
"source": "B", "target": "D", "distance":4
},
{
"source": "C", "target": "B", "distance":3
},
{
"source": "C", "target": "D", "distance":1
},
]
}
How can I save the graph in the database and used it for to find the shortest path between the nodes?| Report Duplicate | Flag | PURGE
@PeyarTheriyaa Yes,it will be very heplful.I am implementing using spring boot (java 8) So once the request body is sent we need to convert into matrix before saving into DB
- arvaithi August 06, 2018Can you pls provide the program,thankyou.