Example #1
0
        private static Ponto Ponto(Vertice v)
        {
            Ponto p = null;

            if (v.Valor is Ponto)
            {
                return((Ponto)v.Valor);
            }
            if (v.Valor is Newtonsoft.Json.Linq.JObject)
            {
                dynamic results = JsonConvert.DeserializeObject <dynamic>(v.Valor.ToString());
                object  valor   = results.Valor;
                object  chave   = results.Chave;
                p = new EDNL.Grafo.Ponto(chave, valor);

                return(p);
            }
            else
            {
                return(p);
            }
        }