Click here to Skip to main content
15,884,472 members
Articles / Programming Languages / C#

Dijkstra:Shortest Route Calculation - Object Oriented

Rate me:
Please Sign up or sign in to vote.
4.32/5 (24 votes)
3 Jan 2008CPOL2 min read 201K   14.6K   75  
Calculation of the shortest path between x points
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RouteEngine;

namespace Gui
{
    public class GuiLocation:Location
    {
       
        int x, y;
        bool selected;
        

        public int Width
        {
            get { return 25; }
            
        }

        public bool Selected
        {
            get { return selected; }
            set { selected = value; }
        }

        public int Y
        {
            get { return y; }
            set { y = value; }
        }

        public int X
        {
            get { return x; }
            set { x = value; }
        }   


    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions