I'm trying to add an edge meta data value but I get and exception "Collection is readonly".
May be I make mistake, what is the right way to add a meta data value to one or more edges?
following my snippet:
foreach (var vertex in GetVerticesByCircle(network, latitude[0], longitude[0], radius))
{
edgeEnumerator.MoveTo(vertex);
while (edgeEnumerator.MoveNext())
{
var edgeData = edgeEnumerator.Data;
var metaData = routerDb.EdgeMeta.Get(edgeData.MetaId);
metaData.AddOrReplace("custom", "5000");
}
}
I'm trying to add an edge meta data value but I get and exception "Collection is readonly". May be I make mistake, what is the right way to add a meta data value to one or more edges?
following my snippet: