.net binary serialization / deserialization

Topics: serialization
Feb 5 at 2:24 PM
Edited Feb 5 at 2:48 PM
Sorry for this probably simple question, but I've got trouble with serialization of AdjacaencyGraph.

I use this type of graph
 AdjacencyGraph<MyClass, TaggedEdge<MyClass, double>>
I try use it for cloning my Dictionary which contain this type of graphs, thats how I do it:
 public static T Clone<T>(T source)
        { 
            IFormatter formatter = new BinaryFormatter();
            Stream stream = new MemoryStream();
            using (stream)
            {
                formatter.Serialize(stream, source);
                stream.Seek(0, SeekOrigin.Begin);
                return (T)formatter.Deserialize(stream);
            }
        }
And programm fall when try to serialize, it says that this type not mentioned as serializable.

How can I fix it& Or is there are any other way to make a clone.