Skip to content

Commit

Permalink
#7
Browse files Browse the repository at this point in the history
  • Loading branch information
mfe- committed Dec 22, 2019
1 parent 6dc44b0 commit 016daa2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions DataStructures/Edge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace DataStructures
[DataContract(Namespace = "http://schemas.get.com/Graph/Edges")]
public class Edge<TData> : IEdge<TData>
{
protected IVertex _u;
protected IVertex _v;
protected int _weighted;
private IVertex _u;
private IVertex _v;
private int _weighted;

/// <summary>
/// Initializes a new instance of the Edge class.
Expand Down
2 changes: 1 addition & 1 deletion DataStructures/IVertex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public interface IVertex : INotifyPropertyChanged
/// Gets or sets the Weighted of the vertex
/// </summary>
int Weighted { get; set; }
ObservableCollection<IEdge> Edges { get; set; }
ObservableCollection<IEdge> Edges { get; }
/// <summary>
/// Creates a un/directed edge to the overgiven Vertex
/// </summary>
Expand Down
8 changes: 4 additions & 4 deletions DataStructures/Vertex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ namespace DataStructures
[DataContract(Namespace = "http://schemas.get.com/Graph/Vertex")]
public class Vertex<TData> : IVertex<TData>
{
protected ObservableCollection<IEdge> _Edges = new ObservableCollection<IEdge>();
private ObservableCollection<IEdge> _Edges = new ObservableCollection<IEdge>();
[DataMember(Name = "Guid", Order = 3, IsRequired = true)]
protected readonly Guid _Guid;
protected int _weighted;
protected TData _Data;
private readonly Guid _Guid;
private int _weighted;
private TData _Data;

/// <summary>
/// Initializes a new instance of the Vertex class.
Expand Down

0 comments on commit 016daa2

Please sign in to comment.