Neo4j will support tree pattern in 2.x versions.(We could not use tree function) We are using 1.9RC1.
I need to get Users with Followers and Friends.
public class User
{
public long Id { get; set; }
public string Name { get; set; }
...............
}
public class UserModel
{
public long Id { get; set; }
public string Name { get; set; }
public string DetailedInformation { get; set; }
public IEnumerable<UserModel2> Followers { get; set; }
public IEnumerable<UserModel2> Friends{ get; set; }
}
public class UserModel2
{
public long Id { get; set; }
public string Name { get; set; }
}
I want to get tree structured UserModel response. How can be done via Gremlin..
We were using paths function.
g.v(4582).inE.outV.paths{it}
But there is data duplication problem for it. It returns paths not tree.
PS: We are using C#.