public DefineVertexStringGraphMLAttributes ( ) : void | ||
Результат | void |
CreateGraphMLXmlDocument ( Boolean includeStatistics, Boolean includeStatuses ) { GraphMLXmlDocument graphMLXmlDocument = new GraphMLXmlDocument(true); if (includeStatistics) { TwitterGraphMLUtil.DefineVertexStatisticsGraphMLAttributes( graphMLXmlDocument); } TwitterGraphMLUtil.DefineCommonGraphMLAttributes(graphMLXmlDocument); graphMLXmlDocument.DefineVertexStringGraphMLAttributes( VertexTweetedSearchTermID, "Tweeted Search Term?"); graphMLXmlDocument.DefineVertexStringGraphMLAttributes( VertexToolTipID, "Tooltip"); if (includeStatuses) { TwitterGraphMLUtil.DefineEdgeStatusGraphMLAttributes( graphMLXmlDocument); } return (graphMLXmlDocument); }
DefineVertexImageFileGraphMLAttribute ( GraphMLXmlDocument graphMLXmlDocument ) { Debug.Assert(graphMLXmlDocument != null); graphMLXmlDocument.DefineVertexStringGraphMLAttributes( VertexImageFileID, VertexImageFileColumnName); }
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)" ); }
DefineVertexLabelGraphMLAttribute ( GraphMLXmlDocument graphMLXmlDocument ) { Debug.Assert(graphMLXmlDocument != null); graphMLXmlDocument.DefineVertexStringGraphMLAttributes( VertexLabelID, VertexLabelColumnName); }
DefineVertexCustomMenuGraphMLAttributes ( GraphMLXmlDocument graphMLXmlDocument ) { Debug.Assert(graphMLXmlDocument != null); graphMLXmlDocument.DefineVertexStringGraphMLAttributes( VertexMenuTextID, VertexMenuTextColumnName, VertexMenuActionID, VertexMenuActionColumnName ); }
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); }
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); }
CreateGraphMLXmlDocument ( Boolean bIncludeCommenterVertices, Boolean bIncludeUserInformation ) { AssertValid(); GraphMLXmlDocument oGraphMLXmlDocument = new GraphMLXmlDocument(true); NodeXLGraphMLUtil.DefineEdgeRelationshipGraphMLAttribute( oGraphMLXmlDocument); if (bIncludeCommenterVertices) { oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes( CommentDateUtcID, "Comment Time (UTC)", CommentUrlID, "Comment URL" ); } if (bIncludeUserInformation) { oGraphMLXmlDocument.DefineGraphMLAttribute(false, TotalPhotosID, "Total Photos", "int", null); oGraphMLXmlDocument.DefineVertexStringGraphMLAttributes( RealNameID, "Real Name", IsProfessionalID, "Is Professional" ); NodeXLGraphMLUtil.DefineVertexImageFileGraphMLAttribute( oGraphMLXmlDocument); NodeXLGraphMLUtil.DefineVertexCustomMenuGraphMLAttributes( oGraphMLXmlDocument); } return (oGraphMLXmlDocument); }
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); }