怎么了?
using QuickGraph;
using GraphSharp;
public class State
{
public string Name { get; set; }
public override string ToString()
{
return Name;
}
}
public class Event
{
public string Name;
public override string ToString()
{
return Name;
}
}
BidirectionalGraph<State, TaggedEdge<State, Event>> x =
new BidirectionalGraph<State, TaggedEdge<State, Event>>();
GraphLayout graphLayout = new GraphLayout();
graphLayout.Graph = x;
错误:
无法将类型隐式转换QuickGraph.BidirectionalGraph<ChashaGraphSharp.State,QuickGraph.TaggedEdge<ChashaGraphSharp.State,ChashaGraphSharp.Event>>
为QuickGraph.IBidirectionalGraph<object,QuickGraph.IEdge<object>>
. 存在显式转换(您是否缺少演员表?)
如果我放了演员表,那么应用程序在启动时会出现错误错误而没有任何信息
怎么了?