コード例 #1
0
        CreateGraphMLXmlDocument
        (
            Boolean bIncludeAllStatistics
        )
        {
            AssertValid();

            GraphMLXmlDocument oGraphMLXmlDocument = new GraphMLXmlDocument(true);

            NodeXLGraphMLUtil.DefineVertexCustomMenuGraphMLAttributes(
                oGraphMLXmlDocument);

            NodeXLGraphMLUtil.DefineEdgeRelationshipGraphMLAttribute(
                oGraphMLXmlDocument);

            if (bIncludeAllStatistics)
            {
                oGraphMLXmlDocument.DefineGraphMLAttributes(false, "int",
                                                            FriendsID, "Friends",
                                                            SubscriptionsID, "People Subscribed To",
                                                            SubscribersID, "Subscribers",
                                                            VideosWatchedID, "Videos Watched",
                                                            VideosUploadedID, "Videos Uploaded"
                                                            );

                oGraphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                    JoinedDateUtcID, "Joined YouTube Date (UTC)");

                NodeXLGraphMLUtil.DefineVertexImageFileGraphMLAttribute(
                    oGraphMLXmlDocument);
            }

            return(oGraphMLXmlDocument);
        }
コード例 #2
0
        CreateGraphMLXmlDocument
        (
            WhatToInclude eWhatToInclude
        )
        {
            AssertValid();

            GraphMLXmlDocument oGraphMLXmlDocument = new GraphMLXmlDocument(false);

            NodeXLGraphMLUtil.DefineEdgeRelationshipGraphMLAttribute(
                oGraphMLXmlDocument);

            if (WhatToIncludeFlagIsSet(eWhatToInclude,
                                       WhatToInclude.SharedCategoryEdges))
            {
                oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                    SharedCategoryID, "Shared Category");
            }

            if (WhatToIncludeFlagIsSet(eWhatToInclude,
                                       WhatToInclude.SharedCommenterEdges))
            {
                oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                    SharedCommenterID, "Shared Commenter");
            }

            if (WhatToIncludeFlagIsSet(eWhatToInclude,
                                       WhatToInclude.SharedVideoResponderEdges))
            {
                oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                    SharedVideoResponderID, "Shared Video Responder");
            }

            oGraphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                TitleID, "Title",
                AuthorID, "Author",
                CreatedDateUtcID, "Created Date (UTC)"
                );

            oGraphMLXmlDocument.DefineGraphMLAttribute(false, RatingID,
                                                       "Rating", "double", null);

            oGraphMLXmlDocument.DefineGraphMLAttributes(false, "int",
                                                        ViewsID, "Views",
                                                        FavoritedID, "Favorited",
                                                        CommentsID, "Comments"
                                                        );

            NodeXLGraphMLUtil.DefineVertexImageFileGraphMLAttribute(
                oGraphMLXmlDocument);

            NodeXLGraphMLUtil.DefineVertexCustomMenuGraphMLAttributes(
                oGraphMLXmlDocument);

            return(oGraphMLXmlDocument);
        }
コード例 #3
0
        DefineVertexLabelGraphMLAttribute
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexLabelID, VertexLabelColumnName);
        }
コード例 #4
0
        DefineVertexImageFileGraphMLAttribute
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexImageFileID, VertexImageFileColumnName);
        }
コード例 #5
0
        CreateGraphMLXmlDocument()
        {
            GraphMLXmlDocument graphMLXmlDocument = new GraphMLXmlDocument(true);

            TwitterGraphMLUtil.DefineVertexStatisticsGraphMLAttributes(
                graphMLXmlDocument);

            TwitterGraphMLUtil.DefineCommonGraphMLAttributes(graphMLXmlDocument);

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexTweetedSearchTermID, "Tweeted Search Term?");

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexToolTipID, "Tooltip");

            TwitterGraphMLUtil.DefineEdgeStatusGraphMLAttributes(
                graphMLXmlDocument);

            return(graphMLXmlDocument);
        }
コード例 #6
0
        DefineVertexCustomMenuGraphMLAttributes
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexMenuTextID, VertexMenuTextColumnName,
                VertexMenuActionID, VertexMenuActionColumnName
                );
        }
コード例 #7
0
        DefineVertexLatestStatusGraphMLAttributes
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexLatestStatusID, "Latest Tweet",
                VertexLatestStatusUrlsID, "URLs in Latest Tweet",
                VertexLatestStatusDomainsID, "Domains in Latest Tweet",
                VertexLatestStatusHashtagsID, "Hashtags in Latest Tweet",
                VertexLatestStatusDateUtcID, "Latest Tweet Date (UTC)"
                );

            DefineLatitudeAndLongitudeGraphMLAttributes(graphMLXmlDocument, false);
            DefineInReplyToStatusIDGraphMLAttribute(graphMLXmlDocument, false);
        }
コード例 #8
0
        DefineVertexStatisticsGraphMLAttributes
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineGraphMLAttributes(false, "int",
                                                       VertexFollowedID, "Followed",
                                                       VertexFollowersID, "Followers",
                                                       VertexStatusesID, "Tweets",
                                                       VertexFavoritesID, "Favorites",
                                                       VertexUtcOffsetID, "Time Zone UTC Offset (Seconds)"
                                                       );

            graphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                VertexDescriptionID, "Description",
                VertexLocationID, "Location",
                VertexUrlID, "Web",
                VertexTimeZoneID, "Time Zone",
                VertexJoinedDateUtcID, "Joined Twitter Date (UTC)"
                );
        }